diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -1,7 +1,4 @@ -# Makefile - -# apache-icons - Alternative icons for Apache autoindex -# Copyright (C) 2014-2017 Daniel Baumann <daniel.baumann@open-infrastructure.net> +# Copyright (C) 2014-2019 Daniel Baumann <daniel.baumann@open-infrastructure.net> # # SPDX-License-Identifier: GPL-3.0+ # @@ -20,7 +17,9 @@ SHELL := sh -e -SOFTWARE = apache-icons +PROJECT = open-infrastructure +SOFTWARE = service-tools +PROGRAM = apache-icons all: build @@ -49,18 +48,16 @@ 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) + mkdir -p $(DESTDIR)/usr/share/$(PROJECT)/$(PROGRAM) + cp -r VERSION.txt $(DESTDIR)/usr/share/$(PROJECT)/$(PROGRAM) + cp -r build/* $(DESTDIR)/usr/share/$(PROJECT)/$(PROGRAM) - for DIRECTORY in $(DESTDIR)/usr/share/$(SOFTWARE)/*-png; \ + for DIRECTORY in $(DESTDIR)/usr/share/$(PROJECT)/$(PROGRAM)/*-png; \ do \ cp -a share/common/*.png $${DIRECTORY}; \ done - for DIRECTORY in $(DESTDIR)/usr/share/$(SOFTWARE)/*-svg; \ + for DIRECTORY in $(DESTDIR)/usr/share/$(PROJECT)/$(PROGRAM)/*-svg; \ do \ cp -a share/common/*.svg $${DIRECTORY}; \ done @@ -80,6 +77,9 @@ install: build fi; \ done + mkdir -p $(DESTDIR)/usr/share/doc/$(SOFTWARE) + cp -r CHANGELOG.txt LICENSE.txt README.txt $(DESTDIR)/usr/share/doc/$(SOFTWARE) + uninstall: for SECTION in $$(seq 1 8); \ do \ @@ -102,10 +102,10 @@ uninstall: done rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/etc/apache2/mods-available || true - rm -rf $(DESTDIR)/usr/share/$(SOFTWARE)/* - rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/$(SOFTWARE) || true + rm -rf $(DESTDIR)/usr/share/$(PROJECT)/$(PROGRAM) + rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/$(PROJECT) || true - rm -rf $(DESTDIR)/usr/share/doc/$(SOFTWARE)/* + rm -rf $(DESTDIR)/usr/share/doc/$(SOFTWARE) rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/doc/$(SOFTWARE) || true clean: |