summaryrefslogtreecommitdiff
path: root/Makefile
blob: f7b9363f01a372724117f26b819fb197e11d1c55 (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
PREFIX=/usr
DESTDIR=

bootscripts:
	mkdir -p        $(DESTDIR)/etc/s6/db
	mkdir -p        $(DESTDIR)/usr/bin
	mkdir -p        $(DESTDIR)/sbin
	mkdir -p        $(DESTDIR)/lib/services
	cp -ar xi/s6/sv $(DESTDIR)/etc/s6/
	cp -ar xi/s6/skel $(DESTDIR)/etc/s6/
	cp -a xi/vconsole.conf $(DESTDIR)/etc/
	install -m755 xi/bin/modules-load $(DESTDIR)/usr/bin/
	install -m755 xi/bin/tmpfiles     $(DESTDIR)/usr/bin/
	install -m755 xi/s6/base/bin/*    $(DESTDIR)/sbin/
	install -m755 xi/bin/ifup         $(DESTDIR)/sbin/                                               
	install -m755 xi/bin/ifdown       $(DESTDIR)/sbin/                                               
	cp -ar xi/s6/scripts $(DESTDIR)/etc/s6/
	install -m755 xi/services/dhcpcd	  $(DESTDIR)/lib/services
	install -m755 xi/services/ipv4-static $(DESTDIR)/lib/services
	install -m755 xi/services/wpa	      $(DESTDIR)/lib/services

utmps:
	mkdir -p $(DESTDIR)/var/log/utmps                                                  
	mv 		 $(DESTDIR)/var/log/wtmp /var/log/utmps/                                       

install-mkinitramfs: mkinitrd/mkinitramfs.sh mkinitrd/init.in
	install -d $(DESTDIR)$(PREFIX)/bin
	install -d $(DESTDIR)$(PREFIX)/share/mkinitramfs
	install -m755 mkinitrd/mkinitramfs.sh ${DESTDIR}${PREFIX}/bin/mkinitramfs
	install -m644 mkinitrd/init.in ${DESTDIR}${PREFIX}/share/mkinitramfs/