summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3032d809cf100dc4646f56b1c2ed36e4e8681d7e (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
all: install

install:
	install -d $(DESTDIR)/sbin
	install -d $(DESTDIR)/usr/share/aif/docs
	install -d $(DESTDIR)/usr/share/aif/examples
	install -d $(DESTDIR)/usr/share/aif/tests
	install -d $(DESTDIR)/usr/lib/aif/core
	install -d $(DESTDIR)/usr/lib/aif/user
	install -D -m755 src/aif.sh               $(DESTDIR)/sbin/aif
	install -D -m755 src/aif-test.sh          $(DESTDIR)/sbin/aif-test
	install -D -m755 src/aif-report-issues.sh $(DESTDIR)/sbin/aif-report-issues.sh
	install -D -m644 README $(DESTDIR)/usr/share/aif/docs
	install -D -m644 doc/* $(DESTDIR)/usr/share/aif/docs
	cp -rp src/core $(DESTDIR)/usr/lib/aif
	chmod -R 755 $(DESTDIR)/usr/lib/aif/core
	cp -rp src/user $(DESTDIR)/usr/lib/aif
	chmod -R 755 $(DESTDIR)/usr/lib/aif/user
	cp -rp examples $(DESTDIR)/usr/share/aif
	chmod -R 755 $(DESTDIR)/usr/share/aif/examples
	cp -rp tests $(DESTDIR)/usr/share/aif
	chmod -R 755 $(DESTDIR)/usr/share/aif/tests


uninstall:
	rm -f  $(DESTDIR)/sbin/aif
	rm -f  $(DESTDIR)/sbin/aif-test
	rm -f  $(DESTDIR)/sbin/aif-report-issues.sh
	rm -rf $(DESTDIR)/usr/share/aif
	rm -rf $(DESTDIR)/usr/lib/aif