summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-08-19 09:00:09 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-08-19 09:20:31 +0000
commit4949c14cde231e09916ad62a2b4cd3ba540f1580 (patch)
treeb24a966a44fc87e2472a73f178f354266a23713f
parentReleasing version 20210804. (diff)
downloadcompute-tools-4949c14cde231e09916ad62a2b4cd3ba540f1580.tar.xz
compute-tools-4949c14cde231e09916ad62a2b4cd3ba540f1580.zip
Shortening Makefile for different debconf script modes.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rw-r--r--Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 7bcccc9..3350314 100644
--- a/Makefile
+++ b/Makefile
@@ -116,12 +116,13 @@ install: build
ln -sf container-shell.1 $(DESTDIR)/usr/share/man/man1/cntsh.1
ln -sf container $(DESTDIR)/usr/share/bash-completion/completions/cnt
- ln -sf debconf $(DESTDIR)/usr/share/$(SOFTWARE)/build-scripts/debian
- ln -sf debconf.d $(DESTDIR)/usr/share/$(SOFTWARE)/build-scripts/debian.d
- ln -sf container-build-debconf.1 $(DESTDIR)/usr/share/man/man1/container-build-debian.1
- ln -sf debconf $(DESTDIR)/usr/share/$(SOFTWARE)/build-scripts/progress-linux
- ln -sf debconf.d $(DESTDIR)/usr/share/$(SOFTWARE)/build-scripts/progress-linux.d
- ln -sf container-build-debconf.1 $(DESTDIR)/usr/share/man/man1/container-build-progress-linux.1
+ for MODE in debian progress-linux; \
+ do \
+ ln -sf debconf $(DESTDIR)/usr/share/$(SOFTWARE)/build-scripts/$${MODE}; \
+ ln -sf debconf.d $(DESTDIR)/usr/share/$(SOFTWARE)/build-scripts/$${MODE}.d; \
+ ln -sf container-build-debconf.1 $(DESTDIR)/usr/share/man/man1/container-build-$${MODE}.1; \
+ done
+
ln -sf debootstrap $(DESTDIR)/usr/share/$(SOFTWARE)/build-scripts/mmdebstrap
ln -sf container-build-debootstrap.1 $(DESTDIR)/usr/share/man/man1/container-build-mmdebstrap.1
@@ -163,8 +164,13 @@ uninstall:
rm -f $(DESTDIR)/usr/bin/cntsh
rm -f $(DESTDIR)/usr/share/man/man1/cntsh.1
rm -f $(DESTDIR)/usr/share/bash-completion/completions/cnt
- rm -f $(DESTDIR)/usr/share/man/man1/container-build-debian.1
- rm -f $(DESTDIR)/usr/share/man/man1/container-build-progress-linux.1
+
+ for MODE in debian progress-linux; \
+ do \
+ rm -f $(DESTDIR)/usr/share/man/man1/container-build-$${MODE}.1; \
+ rm -f $(DESTDIR)/usr/share/man/man1/container-build-$${MODE}.1; \
+ done
+
rm -f $(DESTDIR)/usr/share/man/man1/container-build-mmdebstrap.1
for FILE in share/sudo/*; \