summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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/*; \