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

initramfs.img:
	./make

-include initramfs.d

install: install-initramfs.img

install-initramfs.img: initramfs.img
	rm -f $@.old $@.new
	cp $< $@.new
	if [ -e $@ ]; then mv $@ $@.old; fi
	mv $@.new $@

clean:
	$(RM) -r initramfs.img initramfs.d kernel

.PHONY: all install install-initramfs.img clean

MAKEFLAGS = -L -R -r