summaryrefslogtreecommitdiffstats
path: root/images/Makefile
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2011-01-19 10:44:49 +0000
committerAntoine Ginies <aginies@mandriva.com>2011-01-19 10:44:49 +0000
commit530a16ec071db0e24e6e949e265a96848864967c (patch)
treefe40cacd28d67b98186754c551b7fd339ebc7e17 /images/Makefile
downloaddrakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.tar
drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.tar.gz
drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.tar.bz2
drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.tar.xz
drakx-backup-do-not-use-530a16ec071db0e24e6e949e265a96848864967c.zip
add mes5-2.6.33 branch
Diffstat (limited to 'images/Makefile')
-rw-r--r--images/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/images/Makefile b/images/Makefile
new file mode 100644
index 000000000..c46551b46
--- /dev/null
+++ b/images/Makefile
@@ -0,0 +1,42 @@
+include ../Makefile.config
+
+VERSION=1.31.1
+PRODUCT=drakx-installer-images
+KERNELS=$(shell rpm -qf /lib/modules/2.*)
+
+IMAGES_DEST = $(ROOTDEST)/install/images
+
+all: images
+
+images: all.kernels
+ DISTRIB_DESCR=$(DISTRIB_DESCR) ./make_boot_img
+ rm -rf images/alternatives
+ if [ `ls images/*.img-* 2>/dev/null | wc -l` -gt 0 ]; then \
+ mkdir images/alternatives; cd images/alternatives; mv ../*.img-* .; md5sum *.img-* > MD5SUM; \
+ fi
+ cd images ; md5sum *.{img,iso}* > MD5SUM
+
+all.kernels: update_kernel ../kernel/list_modules.pm
+ ./update_kernel $(KERNELS)
+
+tar:
+ rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION)
+ mkdir -p $(PRODUCT)-$(VERSION)
+ svn export -q -rBASE . $(PRODUCT)-$(VERSION)/images
+ svn export -q -rBASE ../kernel $(PRODUCT)-$(VERSION)/kernel
+ cp ../Makefile.config $(PRODUCT)-$(VERSION)/
+ tar cfj $(PRODUCT)-$(VERSION).tar.bz2 $(PRODUCT)-$(VERSION)
+ rm -rf $(PRODUCT)-$(VERSION)
+
+clean:
+ rm -rf images isolinux all.kernels modules.description
+ find . -name "*~" -o -name ".#*" | xargs rm -f
+
+install:
+ install -d $(IMAGES_DEST)
+ rm -rf $(IMAGES_DEST)/alternatives
+ cp -r images/* $(IMAGES_DEST)
+ ifneq (,$(findstring $(ARCH), i386 x86_64))
+ rm -rf $(ROOTDEST)/isolinux
+ cp -af isolinux $(ROOTDEST)
+ endif