Makefile -rw-r--r-- 754 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-edit.1 \
18 doc/note-ls.1 \
19 doc/note-sync.1
20
21doc/note.1: doc/note.1.scd
22 scdoc < $< > $@
23
24doc/note.5: doc/note.5.scd
25 scdoc < $< > $@
26
27doc/note-cat.1: doc/note-cat.1.scd
28 scdoc < $< > $@
29
30doc/note-config.1: doc/note-config.1.scd
31 scdoc < $< > $@
32
33doc/note-create.1: doc/note-create.1.scd
34 scdoc < $< > $@
35
36doc/note-delete.1: doc/note-delete.1.scd
37 scdoc < $< > $@
38
39doc/note-edit.1: doc/note-edit.1.scd
40 scdoc < $< > $@
41
42doc/note-ls.1: doc/note-ls.1.scd
43 scdoc < $< > $@
44
45doc/note-sync.1: doc/note-sync.1.scd
46 scdoc < $< > $@