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