-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (26 loc) · 1.32 KB
/
Makefile
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
TANGLED := example.saty example-manual.saty parallel.satyh
all: $(TANGLED)
clean:
$(RM) $(TANGLED)
examples: example.pdf example-manual.pdf
doc: parallel-doc.pdf parallel-doc.html
parallel-doc.pdf: parallel-doc.saty
satysfi $<
parallel-doc.org: parallel.org
emacs $< --batch --eval "(require 'org)" --eval "(require 'ox-md)" --eval '(org-org-export-to-org)'
mv $<.org $@
parallel-doc.html: parallel-doc.org
pandoc -s --toc --template=elegant_bootstrap_menu.html $< -o $@
parallel-doc.saty: parallel-doc.org parallel-doc.template.saty ./pandoc-satysfi-template/satysfi.lua
pandoc -t ./pandoc-satysfi-template/satysfi.lua -s $< --template ./parallel-doc.template.saty | sed 's/\([^\]\)SATySFi/\1\\SATySFi;/g;s/\([^-\]\)LaTeX/\1\\LaTeX;/g;' > $@
%.pdf: %.saty parallel.satyh
satysfi $<
$(TANGLED): tangle
tangle: parallel.org
emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "$<")'
release: package.zip package.tar.gz
package.zip: LICENSE example.saty example-manual.saty parallel.satyh Satyristes satysfi-parallel.opam parallel-doc.pdf parallel-doc.saty satysfi-parallel-doc.opam
zip $@ $^
package.tar.gz: LICENSE example.saty example-manual.saty parallel.satyh Satyristes satysfi-parallel.opam parallel-doc.pdf parallel-doc.saty satysfi-parallel-doc.opam
tar czvf $@ $^
.PHONY: all clean doc tangle release