diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:46 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:14:51 +0100 |
commit | fe6eb1c593e2df135c8807bf94df614984b4d6ec (patch) | |
tree | 693b803dcc6473a8699f0c605c92b10c24755e28 /Makefile | |
parent | 470cf1764bf56b32addff591cfe3fd69af0e5760 (diff) | |
download | live-build-fe6eb1c593e2df135c8807bf94df614984b4d6ec.zip live-build-fe6eb1c593e2df135c8807bf94df614984b4d6ec.tar.gz |
Adding live-helper 1.0~a1-1.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 64 |
1 files changed, 18 insertions, 46 deletions
@@ -1,58 +1,30 @@ -# Makefile +#!/usr/bin/make -f all: install install: - @# Install main script - install -D -m 0755 src/main.sh $(DESTDIR)/usr/sbin/make-live + # Installing executables + mkdir -p $(DESTDIR)/usr/bin + cp helpers/lh_* helpers/make-live $(DESTDIR)/usr/bin - @# Install configuration file - install -D -m 0644 src/config $(DESTDIR)/etc/make-live.conf + # Installing shared data + mkdir -p $(DESTDIR)/usr/share/live-helper + cp -r functions hooks includes lists templates $(DESTDIR)/usr/share/live-helper - @# 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/man5 - install -m 0644 doc/man/*.5 $(DESTDIR)/usr/share/man/man5 - install -d -m 0755 $(DESTDIR)/usr/share/man/man8 - install -m 0644 doc/man/*.8 $(DESTDIR)/usr/share/man/man8 - - $(MAKE) -C helpers install + # Installing documentation + mkdir -p $(DESTDIR)/usr/share/doc/live-helper + cp -r COPYING doc/* $(DESTDIR)/usr/share/doc/live-helper uninstall: - @# 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 + # Uninstalling executables + rm -f $(DESTDIR)/usr/bin/lh_* $(DESTDIR)/usr/bin/make-live - @# Remove documentation - rm -rf $(DESTDIR)/usr/share/doc/live-package + # Uninstalling shared data + rm -rf $(DESTDIR)/usr/share/live-helper - @# Remove manpages - rm -f $(DESTDIR)/usr/share/man/man5/make-live.* - rm -f $(DESTDIR)/usr/share/man/man8/make-live.* + # Uninstalling documentation + rm -rf $(DESTDIR)/usr/share/doc/live-helper - $(MAKE) -C helpers uninstall +clean: -reinstall: uninstall install +reinstall: uninstall install |