diff options
Diffstat (limited to 'rescue/Makefile')
| -rw-r--r-- | rescue/Makefile | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/rescue/Makefile b/rescue/Makefile index bbc0d7dda..b9462add0 100644 --- a/rescue/Makefile +++ b/rescue/Makefile @@ -1,16 +1,25 @@ -ARCH := $(patsubst i%86,i386,$(shell uname -m)) -ARCH := $(patsubst sparc%,sparc,$(ARCH)) +include ../Makefile.config +VERSION=1.68 +PRODUCT=drakx-installer-rescue -ROOTDEST = /export +RESCUE = rescue.sqfs -all: rescue_stage2.bz2 +all: $(RESCUE) -install: rescue_stage2.bz2 - cp -f $< $(ROOTDEST)/Mandrake/base +install: $(RESCUE) + cp -f $< $(STAGE2_DEST) -rescue_stage2.bz2: kernel_read_part 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_stage2.bz2 kernel_read_part + rm -f $(RESCUE) kernel_read_part |
