1 |
pterjan |
502 |
include ../Makefile.config |
2 |
|
|
|
3 |
alien |
3081 |
VERSION=1.34 |
4 |
pterjan |
502 |
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 |
tv |
2793 |
dist-svn: |
17 |
pterjan |
502 |
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 |
tmb |
1438 |
tar cfa $(PRODUCT)-$(VERSION).tar.xz $(PRODUCT)-$(VERSION) |
23 |
pterjan |
502 |
rm -rf $(PRODUCT)-$(VERSION) |
24 |
|
|
|
25 |
tv |
2794 |
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 |
tv |
2793 |
tar: |
29 |
tv |
2794 |
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 |
tv |
2793 |
|
40 |
pterjan |
502 |
clean: |
41 |
|
|
rm -f $(RESCUE) kernel_read_part |