Debian Codegraph @

examples/Makefile

raw
1 # $Id: Makefile 2156 2008-01-25 13:25:12Z schimans $
2 # Makefile for the examples
3
4 # The targets to be tested. Use .FILE.test-passed as target, if
5 # FILE.scm has to be tested. Use DIR/.TEST as target if a subdir has
6 # to be tested
7
8 all: .TEST
9
10 .TEST: .test.test-passed \
11 quant/.TEST prop/.TEST hounif/.TEST arith/.TEST \
12 warshall/.TEST dijkstra/.TEST \
13 classical/.TEST dc/.TEST bar/.TEST # .insertsort.test-passed
14 touch .TEST
15
16 # The relative path to the toplevel Minlog-Dir
17 TOP= ../
18
19
20 # The recursive calls:
21
22 arith/.TEST: .always
23 (cd arith; $(MAKE) .TEST)
24
25 bar/.TEST: .always
26 (cd bar; $(MAKE) .TEST)
27
28 dc/.TEST: .always
29 (cd dc; $(MAKE) .TEST)
30
31 classical/.TEST: .always
32 (cd classical; $(MAKE) .TEST)
33
34 hounif/.TEST: .always
35 (cd hounif; $(MAKE) .TEST)
36
37 prop/.TEST: .always
38 (cd prop; $(MAKE) .TEST)
39
40 quant/.TEST: .always
41 (cd quant; $(MAKE) .TEST)
42
43 warshall/.TEST: .always
44 (cd warshall; $(MAKE) .TEST)
45
46 dijkstra/.TEST: .always
47 (cd dijkstra; $(MAKE) .TEST)
48
49
50 # clean has to be implemented at each level. Always have genericclean as a
51 # dependency
52
53 clean: genericclean
54 (cd classical; $(MAKE) clean)
55 (cd hounif; $(MAKE) clean)
56 (cd prop; $(MAKE) clean)
57 (cd quant; $(MAKE) clean)
58 (cd warshall; $(MAKE) clean)
59 (cd dijkstra; $(MAKE) clean)
60 (cd bar; $(MAKE) clean)
61 (cd dc; $(MAKE) clean)
62 (cd arith; $(MAKE) clean)
63
64 # Now include the standard rules for testing:
65 include Makefile.template
66
67
68 ## How it works:
69 ## entry point is always the target .TEST
70 ## Then for every file we have to produce the file .FILE.test-passed
71