~laumann/C

ref: 413fc2afed8f30cf2c7892f00e2bc36326a81f64 C/Makefile -rw-r--r-- 630 bytes
413fc2af — Thomas Bracht Laumann Jespersen A few changes 10 years ago
                                                                                
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
ASCIIDOC=asciidoc
XMLTO=xmlto
RM=rm -rfv

PROJECTS= begin
PROJECTS+=binarytree
PROJECTS+=bits
PROJECTS+=cbook
PROJECTS+=ch8
PROJECTS+=curse
PROJECTS+=debug
PROJECTS+=linkedlist
PROJECTS+=pattern
PROJECTS+=progress
PROJECTS+=redblacktree
PROJECTS+=tblj-yaml
PROJECTS+=trigrapher
PROJECTS+=UVa
PROJECTS+=write
PROJECTS+=yaml1_1

all:
	@for p in $(PROJECTS); do make -C $$p; done

man: doc
	@man -l laumann.1

doc: README.txt
	$(ASCIIDOC) -b docbook -d manpage README.txt
	$(XMLTO) man README.xml

clean:
	@$(RM) laumann.1 README.xml

clean-all:
	@for p in $(PROJECTS); do make -C $$p clean; done

.PHONY: clean clean-all all man doc