1BIN=/$objtype/bin
2CC='cc'
3CFLAGS='-D_BSD_EXTENSION -D_C99_SNPRINTF_EXTENSION'
4
5markdown:
6	ape/psh -c 'cd .. && $CC mktags.c -o mktags && ./mktags > blocktags && make'
7
8none:V: markdown
9
10test: markdown
11	ape/psh -c 'cd ..&& make test'
12
13install: markdown
14	cp ../markdown $BIN/markdown
15
16install.progs: install
17	cp ../makepage $BIN/makepage
18	cp ../mkd2html $BIN/mkd2html
19
20install.libs: install
21	cp ../mkdio.h /sys/include/ape/mkdio.h
22	cp ../libmarkdown.a /$objtype/lib/ape/libmarkdown.a
23
24install.man: install
25	cp markdown.1 /sys/man/1/markdown
26	cp markdown.2 /sys/man/2/markdown
27	cp markdown.6 /sys/man/6/markdown
28
29installall:V: install.libs install.man install.progs
30
31config:
32	ape/psh -c 'cd .. && ./configure.sh $CONFIG'
33
34clean:
35	ape/psh -c 'cd .. && make clean'
36
37nuke:
38	ape/psh -c 'cd .. && make distclean'
39