summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-03-12 06:18:36 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-03-31 14:30:16 +0000
commitd753cad06ca3aa6cd33a89a964802b35139ea70f (patch)
treec80a5743a7aeee1aac28fe2d0e1148fcd9c9527f /Makefile
parentAdding blockio, cpu, memory and tasks limit config options. (diff)
downloadcompute-tools-d753cad06ca3aa6cd33a89a964802b35139ea70f.tar.xz
compute-tools-d753cad06ca3aa6cd33a89a964802b35139ea70f.zip
Adding debconf script.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1e2a083..e0fbeec 100644
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,7 @@ build: share/man/*.txt
install: build
mkdir -p $(DESTDIR)/etc/container-tools/config
+ mkdir -p $(DESTDIR)/etc/container-tools/debconf
mkdir -p $(DESTDIR)/usr/bin
cp -r bin/* $(DESTDIR)/usr/bin
@@ -64,6 +65,9 @@ install: build
mkdir -p $(DESTDIR)/usr/share/$(SOFTWARE)
cp -r VERSION.txt share/config share/scripts ${DESTDIR}/usr/share/$(SOFTWARE)
+ mkdir -p $(DESTDIR)/usr/share/doc/$(SOFTWARE)
+ cp -r share/doc $(DESTDIR)/usr/share/doc/$(SOFTWARE)
+
for SECTION in $$(seq 1 8); \
do \
if ls share/man/*.$${SECTION} > /dev/null 2>&1; \
@@ -103,6 +107,9 @@ uninstall:
rm -f $(DESTDIR)/usr/share/man/man1/cnt.1
rm -f $(DESTDIR)/usr/share/man/man1/cntsh.1
+ rm -rf $(DESTDIR)/usr/share/doc/$(SOFTWARE)
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/doc || true
+
rm -rf $(DESTDIR)/usr/share/$(SOFTWARE)
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share || true
@@ -116,6 +123,7 @@ uninstall:
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/bin || true
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/etc/container-tools/config || true
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/etc/container-tools/debconf || true
clean:
$(MAKE) -C share/man clean