link init
[bootimage-initfs.git] / Makefile
1 CPFLAGS=-pv --parents
2 INSTALLPREFIX=SET_ME
3
4 all:
5
6 clean:
7
8 install: manifest
9         IFS=: ;\
10         cat $< | while read mode source; do \
11                 cp ${CPFLAGS} $${source} ${INSTALLPREFIX}/;\
12                 chmod $${mode} ${INSTALLPREFIX}/$${source} ;\
13         done
14         ln -s bin/busybox ${INSTALLPREFIX}/init
15
16 .PHONY: all clean install
17