diff options
author | Daniel Baumann <daniel@debian.org> | 2010-09-03 19:34:20 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:59:20 +0100 |
commit | 2918768a589a8c3a70866be43abcf98098ffbb1e (patch) | |
tree | 7baa4c14f498b27ca7714d793c28fe0d7c3d7bbd /Makefile | |
parent | 4e9bea12cc07e936d2d357cd5b742bc7feb62308 (diff) | |
download | live-boot-2918768a589a8c3a70866be43abcf98098ffbb1e.tar.gz live-boot-2918768a589a8c3a70866be43abcf98098ffbb1e.zip |
Updating uinstall targets in makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -78,14 +78,26 @@ install: uninstall: # Uninstalling executables rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile + 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 |