summaryrefslogtreecommitdiffstats
path: root/rescue/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/Makefile')
-rw-r--r--rescue/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/rescue/Makefile b/rescue/Makefile
index c08d21c75..b9462add0 100644
--- a/rescue/Makefile
+++ b/rescue/Makefile
@@ -1,12 +1,25 @@
include ../Makefile.config
-all: rescue.clp
+VERSION=1.68
+PRODUCT=drakx-installer-rescue
-install: rescue.clp
+RESCUE = rescue.sqfs
+
+all: $(RESCUE)
+
+install: $(RESCUE)
cp -f $< $(STAGE2_DEST)
-rescue.clp: list list.$(ARCH) drvinst guessmounts lsparts rescue-doc make_rescue_img
- ./make_rescue_img
+$(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.clp kernel_read_part
+ rm -f $(RESCUE) kernel_read_part