summaryrefslogtreecommitdiff
path: root/Makefile
blob: e43700a1d481457ddc3a35a83f7c430efea64ee3 (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
37
38
39
40
41
42
# 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 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 manpages
	install -d -m 0755 $(DESTDIR)/usr/share/man/man8
	install -m 0644 doc/*.8  $(DESTDIR)/usr/share/man/man8

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 manpages
	rm -f $(DESTDIR)/usr/share/man/man8/make-live.*

reinstall:	uninstall install