1 |
include ../Makefile.config |
2 |
|
3 |
VERSION=1.34 |
4 |
PRODUCT=drakx-installer-rescue |
5 |
|
6 |
RESCUE = rescue.sqfs |
7 |
|
8 |
all: $(RESCUE) |
9 |
|
10 |
install: $(RESCUE) |
11 |
cp -f $< $(STAGE2_DEST) |
12 |
|
13 |
$(RESCUE): list.xml drvinst guessmounts lsparts rescue-doc make_rescue_img |
14 |
DISTRIB_DESCR=$(DISTRIB_DESCR) ./make_rescue_img |
15 |
|
16 |
dist-svn: |
17 |
rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION) |
18 |
mkdir -p $(PRODUCT)-$(VERSION)/tools |
19 |
svn export -q -rBASE . $(PRODUCT)-$(VERSION)/rescue |
20 |
cp ../Makefile.config $(PRODUCT)-$(VERSION)/ |
21 |
cp ../tools/install-xml-file-list $(PRODUCT)-$(VERSION)/tools |
22 |
tar cfa $(PRODUCT)-$(VERSION).tar.xz $(PRODUCT)-$(VERSION) |
23 |
rm -rf $(PRODUCT)-$(VERSION) |
24 |
|
25 |
dist-git: |
26 |
@cd ..; git archive --prefix=$(PRODUCT)-$(VERSION)/ HEAD rescue tools/install-xml-file-list Makefile.config | xz >$(PRODUCT)-$(VERSION).tar.xz; |
27 |
|
28 |
tar: |
29 |
rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION) |
30 |
@if [ -e "../.svn" ]; then \ |
31 |
$(MAKE) dist-svn; \ |
32 |
elif [ -e "../.git" ]; then \ |
33 |
$(MAKE) dist-git; \ |
34 |
else \ |
35 |
echo "Unknown SCM (not SVN nor GIT)";\ |
36 |
exit 1; \ |
37 |
fi; |
38 |
$(info $(PRODUCT)-$(VERSION).tar.xz is ready) |
39 |
|
40 |
clean: |
41 |
rm -f $(RESCUE) kernel_read_part |