1 | .PHONY: clean clean-docs docs |
2 | |
3 | default: |
4 | true |
5 | |
6 | clean: clean-docs |
7 | |
8 | clean-docs: |
9 | find doc -type f -not -name '*.scd' -delete |
10 | |
11 | docs: \ |
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 | |
21 | doc/note.1: doc/note.1.scd |
22 | scdoc < $< > $@ |
23 | |
24 | doc/note.5: doc/note.5.scd |
25 | scdoc < $< > $@ |
26 | |
27 | doc/note-cat.1: doc/note-cat.1.scd |
28 | scdoc < $< > $@ |
29 | |
30 | doc/note-config.1: doc/note-config.1.scd |
31 | scdoc < $< > $@ |
32 | |
33 | doc/note-create.1: doc/note-create.1.scd |
34 | scdoc < $< > $@ |
35 | |
36 | doc/note-delete.1: doc/note-delete.1.scd |
37 | scdoc < $< > $@ |
38 | |
39 | doc/note-edit.1: doc/note-edit.1.scd |
40 | scdoc < $< > $@ |
41 | |
42 | doc/note-ls.1: doc/note-ls.1.scd |
43 | scdoc < $< > $@ |
44 | |
45 | doc/note-sync.1: doc/note-sync.1.scd |
46 | scdoc < $< > $@ |