diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-07-03 13:11:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-07-03 13:27:40 +0000 |
commit | a2497d5f76d132ef5ae39e6f291faf9cd735369c (patch) | |
tree | f9a649a9859af5ae2edef49b987eeae618c69e98 /Makefile | |
parent | Making makefile more generic. (diff) | |
download | service-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-- | Makefile | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -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 |