summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-12-01 08:24:27 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-12-04 01:27:32 +0000
commitdf9f347849d45ada9c4b6824b5ff78ad3e4b718f (patch)
treed7ac1215cf2b17d63910303aa9f9b879427aad71 /Makefile
parentAdding note about configuration files in container manpage. (diff)
downloadcompute-tools-df9f347849d45ada9c4b6824b5ff78ad3e4b718f.tar.xz
compute-tools-df9f347849d45ada9c4b6824b5ff78ad3e4b718f.zip
Logging some container actions in container program to /var/log/container-tools/container.log.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1121655..8553973 100644
--- a/Makefile
+++ b/Makefile
@@ -107,7 +107,11 @@ install: build
mkdir -p $(DESTDIR)/lib/systemd/system
cp -r share/systemd/* $(DESTDIR)/lib/systemd/system
+ mkdir -p $(DESTDIR)/var/log/$(SOFTWARE)
+
uninstall:
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/var/log/$(SOFTWARE) || true
+
for FILE in share/systemd*; \
do \
if [ -e "$${FILE}" ]; \