summaryrefslogtreecommitdiff
path: root/Makefile
blob: cbed5fd0dd2af66a36c5e175c7ca08a8adc49444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all:

install: all
	# install to sbin since script only usable by root
	mkdir -p $(DESTDIR)/usr/sbin
	install -m 755 mkarchiso $(DESTDIR)/usr/sbin
	# testiso can be used by anyone
	mkdir -p $(DESTDIR)/usr/bin
	install -m 755 testiso $(DESTDIR)/usr/bin
	# hooks/install are needed by mkinitcpio
	mkdir -p $(DESTDIR)/lib/initcpio/{hooks,install}
	install -m 644 hooks/{archiso,boot-cd,boot-usb} $(DESTDIR)/lib/initcpio/hooks/
	install -m 644 install/{archiso,boot-cd,boot-usb} $(DESTDIR)/lib/initcpio/install/
	# install default config in a sane location
	mkdir -p $(DESTDIR)/usr/share/archiso
	cp -R default-config $(DESTDIR)/usr/share/archiso/

uninstall:
	rm -f $(DESTDIR)/usr/sbin/mkarchiso
	rm -f $(DESTDIR)/usr/bin/testiso
	rm -f $(DESTDIR)/lib/initcpio/hooks/{archiso,boot-cd,boot-usb}
	rm -f $(DESTDIR)/lib/initcpio/install/{archiso,boot-cd,boot-usb}
	rm -rf $(DESTDIR)/usr/share/archiso