diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -18,6 +18,8 @@ SHELL := sh -e +SOFTWARE = apache-icons + all: build build: @@ -41,15 +43,15 @@ build: done install: build - mkdir -p $(DESTDIR)/usr/share/apache-icons - cp -a build/* $(DESTDIR)/usr/share/apache-icons + mkdir -p $(DESTDIR)/usr/share/$(SOFTWARE) + cp -a build/* $(DESTDIR)/usr/share/$(SOFTWARE) - for DIRECTORY in $(DESTDIR)/usr/share/apache-icons/*-png; \ + for DIRECTORY in $(DESTDIR)/usr/share/$(SOFTWARE)/*-png; \ do \ cp -a share/common/*.png $${DIRECTORY}; \ done - for DIRECTORY in $(DESTDIR)/usr/share/apache-icons/*-svg; \ + for DIRECTORY in $(DESTDIR)/usr/share/$(SOFTWARE)/*-svg; \ do \ cp -a share/common/*.svg $${DIRECTORY}; \ done @@ -61,7 +63,8 @@ install: build cp -a share/apache/mods/* $(DESTDIR)/etc/apache2/mods-available uninstall: - rm -rf $(DESTDIR)/usr/share/apache-icons + rm -rf $(DESTDIR)/usr/share/$(SOFTWARE)/* + rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/$(SOFTWARE) || true clean: rm -rf build |