-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
46 lines (39 loc) · 877 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# $Id: Makefile,v 1.6 2001/06/18 15:19:45 dahm Exp $
#
SUBDIRS := cb/parser cb/util cb/petal cb/generator test
PACKAGES := $(patsubst cb/%,cb.%,$(SUBDIRS))
EXAMPLES := $(wildcard examples/*.mdl)
JAVADOC := javadoc
JC = jikes
JFLAGS = +E
all:
for i in $(SUBDIRS) ;\
do\
(cd $$i ; $(MAKE) JC=$(JC) JFLAGS=$(JFLAGS))\
done
check: always
@for i in $(EXAMPLES) ;\
do\
echo Checking $$i ;\
java -cp . cb.parser.PrintVisitor $$i > TMP ;\
echo File successfully parsed ;\
diff -b $$i TMP ;\
done
@rm -f TMP
test: all
(cd test ; $(MAKE) test)
always:
templates: all
java cb.util.Dump
docs: always
-mkdir api-docs
$(JAVADOC) -classpath . -doctitle "CrazyBeans API documentation" \
-windowtitle "CrazyBeans API documentation" -version \
-author -d api-docs $(PACKAGES)
clean:
rm -f TMP
for i in $(SUBDIRS) ;\
do\
(cd $$i ; $(MAKE) clean)\
done