summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-03-02 11:26:56 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-03-02 14:43:40 +0000
commitf638756feaa9c3345dbcf1480cd02325928f289c (patch)
treedef2f82f7747abf06026a5772e9513167644d7ae /Makefile
parentSwitching from font-awesome to fork-awesome. (diff)
downloadservice-tools-f638756feaa9c3345dbcf1480cd02325928f289c.tar.xz
service-tools-f638756feaa9c3345dbcf1480cd02325928f289c.zip
Updating Makefile for rename to service-tools.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 15 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 2f2c01d..0e7140b 100644
--- a/Makefile
+++ b/Makefile
@@ -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: