diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 48 |
1 files changed, 27 insertions, 21 deletions
@@ -1,36 +1,42 @@ # Makefile -all: install +all: install install: - # Install main script - install -D -m 755 make-live.sh $(DESTDIR)/usr/sbin/make-live - install -d -m 755 $(DESTDIR)/usr/share/make-live + # Installing make-live + @# Install main script + install -D -m 0755 src/main.sh $(DESTDIR)/usr/sbin/make-live - # Install package lists - cp -a lists $(DESTDIR)/usr/share/make-live + @# Install configuration file + install -D -m 0644 src/config $(DESTDIR)/etc/make-live.conf - # Install sub scripts - cp -a scripts $(DESTDIR)/usr/share/make-live + @# 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 configuration templates - cp -a templates $(DESTDIR)/usr/share/make-live + @# 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 manpages - install -d -m 755 $(DESTDIR)/usr/share/man/man8 - cp -a make-live.8 make-live.conf.8 $(DESTDIR)/usr/share/man/man8 + @# Install templates + cp -r templates $(DESTDIR)/usr/share/make-live - # Install configuration file - install -D -m 644 make-live.conf $(DESTDIR)/etc/make-live.conf + @# Install manpages + install -d -m 0755 $(DESTDIR)/usr/share/man/man8 + install -m 0644 doc/*.8 $(DESTDIR)/usr/share/man/man8 uninstall: - # Remove main script - rm -rf $(DESTDIR)/usr/sbin/make-live + # Uninstalling make-live + @# Remove main script + rm -f $(DESTDIR)/usr/sbin/make-live - # Remove shared data - rm -rf $(DESTDIR)/usr/share/make-live + @# Remove configuration file + rm -f $(DESTDIR)/etc/make-live.conf - # Remove configuration file - rm -f $(DESTDIR)/etc/make-live.conf + @# Remove shared data + rm -rf $(DESTDIR)/usr/share/make-live + + @# Remove manpages + rm -f $(DESTDIR)/usr/share/man/man8/make-live.* reinstall: uninstall install |