-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (29 loc) · 763 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (29 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# scripts
#
# use make -r --debug=v to debug ignoring default rules
# what do we not generate? declare those explicitly
RawPages=README.md
NoneSuch=$(RawPages:.html=.md)
# explicit expansion now, instead of deferred
MarkDown=$(filter-out $(RawPages),$(wildcard *.md))
Pages=$(MarkDown:.md=.html)
STYLE=pandoc.css
report:
@echo MD: $(MarkDown)
@echo PG: $(Pages)
@echo RP: $(RawPages)
@echo NS: $(NoneSuch)
all: report $(Pages) $(RawPages)
git status
$(NoneSuch):
@echo Nothing done for $@
extensions=
# extensions="+pipe_tables"
flags=
# $(Pages): %.html: %.md
$(Pages):
pandoc -s -o $@ --css pandoc.css $(flags) -f markdown$(extensions) $>
# foo.docx: foo.tex
# pandoc foo.tex --from latex --to docx > foo.docx
# clean:
# rm $(objects)