14188.2.8
by j.c.sackett
Untrashed a makefile. |
1 |
PYTHON=python |
2 |
# Not all packages have a working Makefile. Work around this by hardcoding
|
|
3 |
# the ones we test. If we fix them all to have EITHER a good makefile
|
|
4 |
# (build and check targets work), or no makefile we can reenable auto
|
|
5 |
# detection.
|
|
6 |
build_dirs:=cscvs dulwich pygettextpo pygpgme subvertpy |
|
7 |
test_dirs:=cscvs pygettextpo |
|
8 |
||
9 |
TEST_ENV_VARS = PYTHON=$(PYTHON) |
|
10 |
||
11 |
all: |
|
12 |
||
13 |
check: build |
|
14 |
@ for subdir in ${test_dirs}; do \ |
|
15 |
$(MAKE) -C $$subdir check $(TEST_ENV_VARS) || exit $$?;\ |
|
16 |
done
|
|
17 |
||
18 |
build: |
|
19 |
@ for subdir in ${build_dirs}; do\ |
|
20 |
if [ -e $$subdir/Makefile ]; then\
|
|
21 |
$(MAKE) -C $$subdir $(TEST_ENV_VARS) || exit $$?;\
|
|
22 |
fi;\
|
|
23 |
done
|
|
24 |
||
25 |
clean: |
|
26 |
@ for subdir in ${build_dirs}; do\ |
|
27 |
if [ -e $$subdir/Makefile ]; then\
|
|
28 |
(cd $$subdir && bzr clean-tree --ignored --force) || exit $$?;\
|
|
29 |
fi;\
|
|
30 |
done
|
|
31 |
||
32 |
.PHONY: check all build clean |