Makefile 862 Bytes
Newer Older
1
2
3
4
all:

install: all
	# install to sbin since script only usable by root
5
	install -D -m 755 mkarchiso $(DESTDIR)/usr/sbin/mkarchiso
6
	# testiso can be used by anyone
7
	install -D -m 755 testiso $(DESTDIR)/usr/bin/testiso
8
	# hooks/install are needed by mkinitcpio
9
10
	install -D -m 644 hooks/archiso $(DESTDIR)/lib/initcpio/hooks/archiso
	install -D -m 644 install/archiso $(DESTDIR)/lib/initcpio/install/archiso
11
12
13
14
	# install docs and examples
	install -d -m 644 $(DESTDIR)/usr/share/archiso/
	cp -r ../configs $(DESTDIR)/usr/share/archiso/configs
	install -D -m 644 ../README $(DESTDIR)/usr/share/doc/archiso/README
15
16
17
18

uninstall:
	rm -f $(DESTDIR)/usr/sbin/mkarchiso
	rm -f $(DESTDIR)/usr/bin/testiso
Aaron Griffin's avatar
Aaron Griffin committed
19
20
	rm -f $(DESTDIR)/lib/initcpio/hooks/archiso
	rm -f $(DESTDIR)/lib/initcpio/install/archiso
21
22
	rm -rf $(DESTDIR)/usr/share/archiso/
	rm -rf $(DESTDIR)/usr/share/doc/archiso/