summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:20 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:20 +0200
commiteeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5 (patch)
tree18151396add367542887fe7f017025538e3318d6 /Makefile
downloadvyos-live-build-eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5.tar.gz
vyos-live-build-eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5.zip
Adding live-package 0.99-1.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..749f805be
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+# Makefile
+
+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
+
+ # Install package lists
+ cp -a lists $(DESTDIR)/usr/share/make-live
+
+ # Install sub scripts
+ cp -a scripts $(DESTDIR)/usr/share/make-live
+
+ # Install configuration templates
+ cp -a templates $(DESTDIR)/usr/share/make-live
+
+ # 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 configuration file
+ install -D -m 644 make-live.conf $(DESTDIR)/etc/make-live.conf
+
+uninstall:
+ # Remove main script
+ rm -rf $(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
+
+reinstall: uninstall install