summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-04-12 22:13:38 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-04-12 22:13:38 +0000
commitaa4337b2eea96e677e4e94f9f474620d6a023dc3 (patch)
treefe1e65c537297db90f7a77ac26576aabaf53d1ab /Makefile
parentcfbdfbe13b73fd6e1d92eb5702aea667b7d1cc2c (diff)
downloaddrakx-backup-do-not-use-aa4337b2eea96e677e4e94f9f474620d6a023dc3.tar
drakx-backup-do-not-use-aa4337b2eea96e677e4e94f9f474620d6a023dc3.tar.gz
drakx-backup-do-not-use-aa4337b2eea96e677e4e94f9f474620d6a023dc3.tar.bz2
drakx-backup-do-not-use-aa4337b2eea96e677e4e94f9f474620d6a023dc3.tar.xz
drakx-backup-do-not-use-aa4337b2eea96e677e4e94f9f474620d6a023dc3.zip
work when I have no alternatives kernel
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