summaryrefslogtreecommitdiffstats
path: root/rescue/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/Makefile')
-rw-r--r--rescue/Makefile27
1 files changed, 21 insertions, 6 deletions
diff --git a/rescue/Makefile b/rescue/Makefile
index 4d3015b81..b9462add0 100644
--- a/rescue/Makefile
+++ b/rescue/Makefile
@@ -1,10 +1,25 @@
-ROOTDEST = /export
+include ../Makefile.config
-install: rescue_stage2.bz2
- cp -f $< $(ROOTDEST)/Mandrake/base
+VERSION=1.68
+PRODUCT=drakx-installer-rescue
-rescue_stage2.bz2: kernel_read_part list
- ./make_rescue_img
+RESCUE = rescue.sqfs
+
+all: $(RESCUE)
+
+install: $(RESCUE)
+ cp -f $< $(STAGE2_DEST)
+
+$(RESCUE): $(wildcard tree/**/*) $(wildcard bin/*) $(wildcard sbin/*) make_rescue_img list.xml aliases
+ if [[ -n "$$DEBUG_INSTALL_LANG" ]]; then perl -pi -e '$$_ = "loadkeys '$$DEBUG_INSTALL_LANG'\n$$_" if /LANGUAGE/' tree/usr/bin/mageia-rescue; fi
+ DISTRIB_DESCR=$(DISTRIB_DESCR) ./make_rescue_img
+
+dist: tar
+
+tar:
+ rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION)
+ @cd ..; git archive --prefix=$(PRODUCT)-$(VERSION)/ $(PRODUCT)-$(VERSION) rescue tools/install-xml-file-list Makefile.config | xz >$(PRODUCT)-$(VERSION).tar.xz;
+ $(info $(PRODUCT)-$(VERSION).tar.xz is ready)
clean:
- rm -f rescue_stage2.bz2 kernel_read_part
+ rm -f $(RESCUE) kernel_read_part