1 |
# $Id$ |
2 |
|
3 |
RM = @RM@ |
4 |
|
5 |
# Default make flags - you may want to uncomment this on a multicpu machine |
6 |
#MFLAGS = -j 4 |
7 |
BUILD_DIRS = pcre |
8 |
|
9 |
# The make used HAS to set $(MAKE). But then, if we don't do it this |
10 |
# way, people lose the option to use a 'make' called something other |
11 |
# than `make.' If it doesn't set $(MAKE), fall back to the old behavior |
12 |
# by substing SET_MAKE. |
13 |
|
14 |
@SET_MAKE@ |
15 |
|
16 |
all: build |
17 |
|
18 |
build: .depend |
19 |
@for i in $(BUILD_DIRS); do \ |
20 |
echo "build ==> $$i";\ |
21 |
cd $$i && ${MAKE} ${MFLAGS} build || exit; cd ..;\ |
22 |
done |
23 |
|
24 |
clean: |
25 |
${RM} -f *~ core |
26 |
@for i in $(BUILD_DIRS); do \ |
27 |
echo "clean ==> $$i";\ |
28 |
cd $$i && ${MAKE} ${MFLAGS} clean || exit; cd ..;\ |
29 |
done |
30 |
-@if [ -f include/setup.h ] ; then \ |
31 |
echo "To really restart installation, ${MAKE} distclean" ; \ |
32 |
fi |
33 |
|
34 |
distclean: |
35 |
${RM} -f Makefile *~ *.rej *.orig *core |
36 |
@for i in $(BUILD_DIRS); do \ |
37 |
echo "distclean ==> $$i";\ |
38 |
cd $$i && ${MAKE} ${MFLAGS} distclean || exit; cd ..; \ |
39 |
done |
40 |
|
41 |
.depend: |
42 |
@for i in $(BUILD_DIRS); do \ |
43 |
echo "depend ==> $$i";\ |
44 |
cd $$i && ${MAKE} ${MFLAGS} .depend || exit; cd .. ; \ |
45 |
done |
46 |
|
47 |
install: |
48 |
@for i in $(BUILD_DIRS); do \ |
49 |
echo "install ==> $$i";\ |
50 |
cd $$i && ${MAKE} ${MFLAGS} install || exit; cd .. ; \ |
51 |
done |
52 |
|
53 |
# A la Linux kernel config :) |
54 |
dep: .depend |