# Makefile all: install install: # Installing make-live @# Install main script install -D -m 0755 src/main.sh $(DESTDIR)/usr/sbin/make-live @# Install configuration file install -D -m 0644 src/config $(DESTDIR)/etc/make-live.conf @# Install package lists install -d -m 0755 $(DESTDIR)/usr/share/make-live/lists install -m 0644 src/lists/* $(DESTDIR)/usr/share/make-live/lists @# Install flavour hooks install -d -m 0755 $(DESTDIR)/usr/share/make-live/hooks install -m 0644 src/hooks/* $(DESTDIR)/usr/share/make-live/hooks @# Install sub scripts install -d -m 0755 $(DESTDIR)/usr/share/make-live/scripts install -m 0755 src/scripts/*.sh $(DESTDIR)/usr/share/make-live/scripts @# Install templates cp -r templates $(DESTDIR)/usr/share/make-live @# Install documentation install -d -m 0755 $(DESTDIR)/usr/share/doc/live-package install -m 0644 doc/*.txt $(DESTDIR)/usr/share/doc/live-package @# Install manpages install -d -m 0755 $(DESTDIR)/usr/share/man/man1 install -m 0644 doc/man/*.1 $(DESTDIR)/usr/share/man/man1 install -d -m 0755 $(DESTDIR)/usr/share/man/man5 install -m 0644 doc/man/*.5 $(DESTDIR)/usr/share/man/man5 uninstall: # Uninstalling make-live @# Remove main script rm -f $(DESTDIR)/usr/sbin/make-live @# Remove configuration file rm -f $(DESTDIR)/etc/make-live.conf @# Remove shared data rm -rf $(DESTDIR)/usr/share/make-live @# Remove documentation rm -rf $(DESTDIR)/usr/share/doc/live-package @# Remove manpages rm -f $(DESTDIR)/usr/share/man/man1/make-live.* reinstall: uninstall install