diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-08-19 09:00:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-08-19 09:20:31 +0000 |
commit | 4949c14cde231e09916ad62a2b4cd3ba540f1580 (patch) | |
tree | b24a966a44fc87e2472a73f178f354266a23713f /Makefile | |
parent | Releasing version 20210804. (diff) | |
download | compute-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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -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/*; \ |