summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a6c79c9a9..c236fb65f 100644
--- a/Makefile
+++ b/Makefile
@@ -43,9 +43,11 @@ ifeq (alpha,$(ARCH))
cp -f vmlinux.gz $(ROOTDEST)/boot/instboot.gz
make -C tools/$(ARCH)/cd install ROOTDEST=$(ROOTDEST)
endif
- cd $(ROOTDEST)/images; rm -rf alternatives ; mkdir alternatives ; mv *.img-* alternatives
+ cd $(ROOTDEST)/images; rm -rf alternatives
+ if [ `ls $(ROOTDEST)/images/*.img-* 2>/dev/null | wc -l` -gt 0 ]; then \
+ cd $(ROOTDEST)/images; mkdir alternatives; cd alternatives; mv ../*.img-* .; md5sum *.img-* > MD5SUM; \
+ fi
cd $(ROOTDEST)/images; md5sum *.img* > MD5SUM
- cd $(ROOTDEST)/images/alternatives; md5sum *.img* > MD5SUM
install live_update $(ROOTDEST)/live_update
make -C perl-install full_stage2