-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
62 lines (52 loc) · 1.72 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
###-----------------------------------------------------------------------------
### Title: Makefile
### Maintainer: Henry G. Weller
### make
### Build 'lc' for the default target (opt)
### make TARGET=debug
### Build debug
###-----------------------------------------------------------------------------
P_DIR = .
include $(P_DIR)/Make/Makefile.config
###-----------------------------------------------------------------------------
### Default build
###-----------------------------------------------------------------------------
.PHONY: all
all: lc doc
.PHONY: lc
lc:
$M $(MAKE) -C Src
###-----------------------------------------------------------------------------
### Test commands
###-----------------------------------------------------------------------------
.PHONY: test
test:
$M $(MAKE) -C Test
###-----------------------------------------------------------------------------
### Miscellaneous commands
###-----------------------------------------------------------------------------
include $(P_DIR)/Make/Makefile.rules
README.org: index.org
$M sed 's%file:%http://henry.github.com/Leda/%' $< > $@
.PHONY: README
README: index.html README.org
.PHONY: doc
doc: README
$M $(MAKE) -C Doc
.PHONY: pack
pack:
$M tar czf leda.tar.gz \
Makefile \
Make \
Src/Makefile Src/gram.y Src/lexer.l Src/*.c Src/*.h \
Doc/ReleaseNotes.org \
Doc/cprog.sty Doc/refmanual.tex Doc/grammar.tex Doc/std.tex \
Doc/trouble.tex \
Test/README.org Test/Makefile Test/*.led Test/chap17input \
Test/concordanceInput
.PHONY: clean
clean: distclean
$M $(MAKE) -C Src distclean
$H $(MAKE) -C Doc distclean
$H $(MAKE) -C Test distclean
###-----------------------------------------------------------------------------