summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-03 13:11:09 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-03 13:27:40 +0000
commita2497d5f76d132ef5ae39e6f291faf9cd735369c (patch)
treef9a649a9859af5ae2edef49b987eeae618c69e98 /Makefile
parentMaking makefile more generic. (diff)
downloadservice-tools-a2497d5f76d132ef5ae39e6f291faf9cd735369c.tar.xz
service-tools-a2497d5f76d132ef5ae39e6f291faf9cd735369c.zip
Adding apache-icons(7) manpage.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f77568c..537f053 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,9 @@ SOFTWARE = apache-icons
all: build
-build:
+build: share/man/*.txt
+ $(MAKE) -C share/man
+
for ICON in share/icons/*; \
do \
ICON="$$(basename $${ICON})"; \
@@ -62,11 +64,34 @@ install: build
mkdir -p $(DESTDIR)/etc/apache2/mods-available
cp -a share/apache/mods/* $(DESTDIR)/etc/apache2/mods-available
+ for SECTION in $$(seq 1 8); \
+ do \
+ if ls share/man/*.$${SECTION} > /dev/null 2>&1; \
+ then \
+ mkdir -p $(DESTDIR)/usr/share/man/man$${SECTION}; \
+ cp share/man/*.$${SECTION} $(DESTDIR)/usr/share/man/man$${SECTION}; \
+ fi; \
+ done
+
uninstall:
+ for SECTION in $$(seq 1 8); \
+ do \
+ for FILE in share/man/*.$${SECTION}; \
+ do \
+ if [ -e "$${FILE}" ]; \
+ then \
+ rm -f $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${FILE}); \
+ fi; \
+ done; \
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/man/man$${SECTION} || true; \
+ done
+
rm -rf $(DESTDIR)/usr/share/$(SOFTWARE)/*
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/$(SOFTWARE) || true
clean:
+ $(MAKE) -C share/man clean
+
rm -rf build
distclean: clean