summaryrefslogtreecommitdiff
path: root/Makefile
blob: 749f805be14b8f1aaeac3b05225d48c14dab5c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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