summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2df976a7e7d05db0344f6eb1afa919fd0e09daba (plain)
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
all: markdown README.html
	$(MAKE) -C 00
	$(MAKE) -C 01
	$(MAKE) -C 02
	$(MAKE) -C 03
	$(MAKE) -C 04
	$(MAKE) -C 04a
	# don't compile all of 05 because it takes a while
	$(MAKE) -C 05
	$(MAKE) -C 05 install
	$(MAKE) -C 05 tcc
clean:
	$(MAKE) -C 00 clean
	$(MAKE) -C 01 clean
	$(MAKE) -C 02 clean
	$(MAKE) -C 03 clean
	$(MAKE) -C 04 clean
	$(MAKE) -C 04a clean
	$(MAKE) -C 05 clean
	rm -f markdown
	rm -f README.html
markdown: markdown.c
	$(CC) -O2 -o markdown -Wall -Wconversion -Wshadow -std=c89 markdown.c
README.html: markdown README.md
	./markdown README.md