1 |
include Makefile.config |
2 |
|
3 |
ROOTDEST = /export |
4 |
STAGE2_DEST = $(ROOTDEST)/install/stage2 |
5 |
|
6 |
DIRS = tools images perl-install/install rescue |
7 |
|
8 |
.PHONY: dirs install |
9 |
|
10 |
install: dirs rescue install_only |
11 |
|
12 |
dirs: |
13 |
@for n in $(DIRS); do $(MAKE) -C $$n all || exit 1 ; done |
14 |
|
15 |
install_only: |
16 |
make -C images install ROOTDEST=$(ROOTDEST) |
17 |
make -C tools install ROOTDEST=$(ROOTDEST) |
18 |
make -C perl-install/install install ROOTDEST=$(ROOTDEST) |
19 |
make -C rescue install STAGE2_DEST=$(STAGE2_DEST) |
20 |
make -C advertising install ROOTDEST=$(ROOTDEST) |
21 |
|
22 |
LC_ALL=C svn info ChangeLog | egrep '^Revision|^Last Changed Date' > $(STAGE2_DEST)/VERSION |
23 |
|
24 |
clean: |
25 |
# force taking new rpms from repository |
26 |
rm -rf images/RPMS |
27 |
for i in $(DIRS); do make -C $$i clean; done |
28 |
find . -name "*~" -o -name ".#*" | xargs rm -f |
29 |
|
30 |
check: |
31 |
$(MAKE) -C perl-install check |