summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-03 19:34:20 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:53:27 +0100
commit036e76c546c5c335dd7cea4a5027e71df5e57c76 (patch)
treedb6c5d2f7fce022283b15f7e3223aaafc100b116 /Makefile
parent5e48c3c7565b2947ad4f0da9c48d6ea0bffa8f47 (diff)
downloadlive-boot-036e76c546c5c335dd7cea4a5027e71df5e57c76.tar.gz
live-boot-036e76c546c5c335dd7cea4a5027e71df5e57c76.zip
Updating uinstall targets in makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 29 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 966a6bd..dae4ec1 100644
--- a/Makefile
+++ b/Makefile
@@ -77,15 +77,27 @@ install:
uninstall:
# Uninstalling executables
- rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile
+ rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile $(DESTDIR)/sbin/live-toram
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/sbin
+
rm -rf $(DESTDIR)/usr/share/live-boot
+
rm -f $(DESTDIR)/usr/share/initramfs-tools/hooks/live
rm -rf $(DESTDIR)/usr/share/initramfs-tools/scripts/live*
rm -f $(DESTDIR)/usr/share/initramfs-tools/scripts/local-top/live
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/hooks
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/scripts/local-top
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/scripts
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr
+
# Uninstalling docs
rm -rf $(DESTDIR)/usr/share/doc/live-boot
- # (FIXME)
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/doc
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr
# Uninstalling manpages
for MANPAGE in manpages/en/*; \
@@ -103,8 +115,22 @@ uninstall:
done; \
done
+ for SECTION in $(ls manpages/en/* | awk -F. '{ print $2 }'); \
+ do \
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/man/man$${SECTION} || true; \
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/man/*/man$${SECTION} || true; \
+ done
+
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/man || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr || true
+
+ rmdir --ignore-fail-on-non-empty $(DESTDIR) || true
+
clean:
+ @echo "Nothing to clean."
-distclean:
+distclean: clean
+ @echo "Nothing to distclean."
reinstall: uninstall install