Makefile -rw-r--r-- 775 B
1.PHONY: clean clean-docs docs
2
3default:
4 true
5
6clean: clean-docs
7
8clean-docs:
9 find doc -type f -not -name '*.scd' -delete
10
11docs: \
12 doc/note.1 \
13 doc/note.5 \
14 doc/note-cat.1 \
15 doc/note-config.1 \
16 doc/note-create.1 \
17 doc/note-delete.1 \
18 doc/note-edit.1 \
19 doc/note-ls.1 \
20 doc/note-sync.1
21
22doc/note.1: doc/note.1.scd
23 scdoc < $< > $@
24
25doc/note.5: doc/note.5.scd
26 scdoc < $< > $@
27
28doc/note-cat.1: doc/note-cat.1.scd
29 scdoc < $< > $@
30
31doc/note-config.1: doc/note-config.1.scd
32 scdoc < $< > $@
33
34doc/note-create.1: doc/note-create.1.scd
35 scdoc < $< > $@
36
37doc/note-delete.1: doc/note-delete.1.scd
38 scdoc < $< > $@
39
40doc/note-edit.1: doc/note-edit.1.scd
41 scdoc < $< > $@
42
43doc/note-ls.1: doc/note-ls.1.scd
44 scdoc < $< > $@
45
46doc/note-sync.1: doc/note-sync.1.scd
47 scdoc < $< > $@