summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-12-11 09:59:48 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-12-11 09:59:48 +0000
commit949be8e83486be569bae115ee89de8a7deb53deb (patch)
tree32f97b1cb2ea86200a3feb46c476961562b297cc /Makefile
parentAdding upstream version 20161101. (diff)
downloadopen-infrastructure-service-tools-949be8e83486be569bae115ee89de8a7deb53deb.tar.xz
open-infrastructure-service-tools-949be8e83486be569bae115ee89de8a7deb53deb.zip
Adding upstream version 20161210.upstream/20161210
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
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