Add update-initramfs.sh.in so we don't need to rebuild initramfs for

small changes in the daemon.
This commit is contained in:
Richard Jones
2009-04-03 01:13:42 +01:00
parent 11d20e2b9f
commit 207056e823
5 changed files with 56 additions and 11 deletions

View File

@@ -33,17 +33,21 @@ VMLINUZ = vmlinuz.$(REPO).$(host_cpu)
fs_DATA = $(INITRAMFSIMG) $(VMLINUZ)
$(VMLINUZ) $(INITRAMFSIMG): initramfs.timestamp
$(INITRAMFSIMG) $(VMLINUZ): initramfs/fakeroot.log
#initramfs.timestamp: make-initramfs.sh.in daemon/guestfsd
initramfs.timestamp: make-initramfs.sh.in
initramfs/fakeroot.log: make-initramfs.sh.in
-mv $(INITRAMFSIMG) $(INITRAMFSIMG).bak
-mv $(VMLINUZ) $(VMLINUZ).bak
bash $(builddir)/make-initramfs.sh || rm -f $@
$(INITRAMFSIMG): initramfs/fakeroot.log daemon/guestfsd
rm -f $@
bash $(builddir)/make-initramfs.sh
bash $(builddir)/update-initramfs.sh
touch $@
# Make clean.
CLEANFILES = $(fs_DATA) initramfs.timestamp emptydisk
CLEANFILES = $(fs_DATA) emptydisk
clean-local:
rm -rf initramfs