summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-12-11 10:00:02 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-12-11 10:00:35 +0000
commit97e98f422eab7db951fd7659bee7eb83ecaf9584 (patch)
tree59fe9704df375341834ca79d394e1700e8ce87cf /Makefile
parentReleasing debian version 20161101-1. (diff)
downloadopen-infrastructure-service-tools-97e98f422eab7db951fd7659bee7eb83ecaf9584.tar.xz
open-infrastructure-service-tools-97e98f422eab7db951fd7659bee7eb83ecaf9584.zip
Merging upstream version 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