summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-03-29 22:47:09 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-03-29 22:47:09 +0000
commit84adb9036e99bc2e7560135694197b9312faa9e6 (patch)
treedfdc79ddfc972f2167c67ff96af51fbec5a7518c /Makefile
parent094971eecb7a5df84b325de8c6ae46e88fc1f0ea (diff)
downloaddrakx-84adb9036e99bc2e7560135694197b9312faa9e6.tar
drakx-84adb9036e99bc2e7560135694197b9312faa9e6.tar.gz
drakx-84adb9036e99bc2e7560135694197b9312faa9e6.tar.bz2
drakx-84adb9036e99bc2e7560135694197b9312faa9e6.tar.xz
drakx-84adb9036e99bc2e7560135694197b9312faa9e6.zip
support more than one boot kernel :-)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 9e962519b..0b1a13a68 100644
--- a/Makefile
+++ b/Makefile
@@ -33,10 +33,10 @@ UPLOAD_SPARC_DEST = /mnt/BIG/distrib/sparc
install: build autoboot rescue
for i in images misc Mandrake Mandrake/base; do install -d $(ROOTDEST)/$$i ; done
ifneq (ppc,$(ARCH))
- cp -f $(RELEASE_BOOT_IMG) $(ROOTDEST)/images
+ for i in $(RELEASE_BOOT_IMG); do cp -f $${i}* $(ROOTDEST)/images; done
endif
ifeq (alpha,$(ARCH))
- cp -f $(BOOT_RDZ) $(ROOTDEST)/boot
+ for i in $(BOOT_RDZ); do cp -f $${i}* $(ROOTDEST)/boot; done
cp -f vmlinux.gz $(ROOTDEST)/boot/instboot.gz
make -C tools/$(ARCH)/cd install ROOTDEST=$(ROOTDEST)
endif
@@ -49,8 +49,9 @@ autoboot:
ifeq (i386,$(ARCH))
install -d $(ROOTDEST)/boot
# cp -f vmlinuz {hd,cdrom,pcmcia,network,all,other}.rdz $(ROOTDEST)/boot
- cp -f vmlinuz $(BOOT_RDZ) $(ROOTDEST)/boot
- /usr/sbin/rdev -v $(ROOTDEST)/boot/vmlinuz 788
+ cp -f all.kernels/*/boot/vmlinuz* $(ROOTDEST)/boot
+ for i in $(BOOT_RDZ); do cp -f $${i}* $(ROOTDEST)/boot; done
+ for i in $(ROOTDEST)/boot/vmlinuz*; do /usr/sbin/rdev -v $$i 788; done
endif
dirs:
@@ -58,12 +59,12 @@ dirs:
[ "$$n" = "." ] || make -C $$n all ;\
done
-rescue: modules
+rescue: all.modules
make -C $@
network_ks.rdz pcmcia_ks.rdz: %_ks.rdz: %.rdz
-$(BOOT_RDZ): dirs modules
+$(BOOT_RDZ): dirs all.modules
./make_boot_img $@ $(@:%.rdz=%)
$(BOOT_IMG): %.img: %.rdz
@@ -74,7 +75,7 @@ tar: clean
cd .. ; tar cfy gi.tar.bz2 gi
rm needed_rpms.lst
-modules:
+all.modules:
`./tools/specific_arch ./update_kernel`
$(BOOT_IMG:%=%f): %f: %
@@ -82,7 +83,8 @@ $(BOOT_IMG:%=%f): %f: %
xmessage "Floppy done"
clean:
- rm -rf $(BOOT_IMG) $(BOOT_RDZ) $(BINS) modules modules64 install_pcmcia_modules vmlinu* System*.map
+ for i in $(BOOT_IMG) $(BOOT_RDZ); do rm -rf $${i}*; done
+ rm -rf $(BINS) all.modules all.modules64 install_pcmcia_modules all.kernels/cardmgr
for i in $(DIRS) rescue; do make -C $$i clean; done
find . -name "*~" -o -name ".#*" | xargs rm -f
@@ -107,7 +109,7 @@ upload:
upload misc rpmtools.pm ;\
upload misc auto ;\
upload '' live_update ;\
- for i in $(RELEASE_BOOT_IMG); do upload images $$i; done ;\
+ for i in $(RELEASE_BOOT_IMG); do for j in $${i}*; do upload images $$j; done; done;\
echo
upload_sparc: