From 97e98f422eab7db951fd7659bee7eb83ecaf9584 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 11 Dec 2016 11:00:02 +0100 Subject: Merging upstream version 20161210. Signed-off-by: Daniel Baumann --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 537f053..13144ac 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,8 @@ all: build build: share/man/*.txt $(MAKE) -C share/man + sed -n '/^NAME/,$$p' share/man/$(SOFTWARE).7.txt > README.txt + for ICON in share/icons/*; \ do \ ICON="$$(basename $${ICON})"; \ @@ -45,6 +47,9 @@ build: share/man/*.txt done install: build + mkdir -p $(DESTDIR)/usr/share/doc/$(SOFTWARE) + cp -a CHANGELOG.txt LICENSE.txt README.txt $(DESTDIR)/usr/share/doc/$(SOFTWARE) + mkdir -p $(DESTDIR)/usr/share/$(SOFTWARE) cp -a build/* $(DESTDIR)/usr/share/$(SOFTWARE) @@ -89,10 +94,14 @@ uninstall: rm -rf $(DESTDIR)/usr/share/$(SOFTWARE)/* rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/$(SOFTWARE) || true + rm -rf $(DESTDIR)/usr/share/doc/$(SOFTWARE)/* + rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/doc/$(SOFTWARE) || true + clean: $(MAKE) -C share/man clean rm -rf build + rm -f README.txt distclean: clean -- cgit v1.2.3