Makefile 485 Bytes
Newer Older
Your Name's avatar
Your Name committed
1 2
install:
	[ -d $(DESTDIR)/lib/initrd/ ] && rm -rf $(DESTDIR)/lib/initrd/ || true
3
	mkdir -p $(DESTDIR)/bin
4
	mkdir -p $(DESTDIR)/lib/initrd/locale/helpmsg
Your Name's avatar
Your Name committed
5
	cp -prfv src/* $(DESTDIR)/lib/initrd/
Your Name's avatar
Your Name committed
6
	cp -prfv locale/* $(DESTDIR)/lib/initrd/locale
7
	cp -prfv locale/helpmsg/* $(DESTDIR)/lib/initrd/locale/helpmsg
Your Name's avatar
Your Name committed
8
	[ -f $(DESTDIR)/bin/update-initrd ] && rm -f $(DESTDIR)/bin/update-initrd || true
9
	ln -s /lib/initrd/build.sh $(DESTDIR)/bin/update-initrd
Your Name's avatar
Your Name committed
10
	chmod +x $(DESTDIR)/lib/initrd/build.sh