comparison DEFS.mk @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 DIRS.maintainer=lint oldclasslib examples
2 DIRS.nonmaintainer=
3
4 DIRS.hasptests=ptests
5 DIRS.noptests=
6
7 SUBDIRS=cgbigen helpgen help2html checksum insertsums anagram doc \
8 $(DIRS.$(MAINTAINER))
9 MORESUBDIRS=lint oldclasslib examples tests $(DIRS.$(HASPTESTS))
10
11 # leave config.status in case the user wants it
12 MYDISTCLEANFILES=Makefile rules.mk depend.mk config.mk
13
14 include $(TOP)/mk/subdir.mk
15 include $(TOP)/mk/installdirs.mk
16
17 test:
18 @echo "run-tests ===> tests"
19 @cd tests && $(MAKE) run-tests _SUBDIR_=tests/
20 @if [ $(HASPTESTS) = hasptests ]; then \
21 echo "run-tests ===> ptests"; \
22 cd ptests && $(MAKE) run-tests _SUBDIR_=ptests/; \
23 fi
24 @echo "show-diffs ===> ..."
25 @cd tests && $(MAKE) show-diffs _SUBDIR_=tests/
26 @if [ $(HASPTESTS) = hasptests ]; then \
27 cd ptests && $(MAKE) show-diffs _SUBDIR_=ptests/; \
28 fi
29
30 clean distclean: cleantest
31 cleantest:
32 @echo "clean ===> tests"
33 @cd tests && $(MAKE) clean _SUBDIR_=tests/
34 @if [ $(HASPTESTS) = hasptests ]; then \
35 echo "clean ===> ptests"; \
36 cd ptests && $(MAKE) clean _SUBDIR_=ptests/; \
37 fi
38
39 install:
40 @echo "install ===> anagram/run"
41 @cd anagram/run && $(MAKE) install _SUBDIR_=anagram/run/
42 @echo "install ===> doc"
43 @cd doc && $(MAKE) install _SUBDIR_=doc/
44 @echo "install ===> oldclasslib"
45 @cd oldclasslib && $(MAKE) install _SUBDIR_=oldclasslib/
46 @echo "install ===> examples"
47 @cd examples && $(MAKE) install _SUBDIR_=examples/
48
49 .PHONY: test cleantest clean distclean install