-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 1.26 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
README.html: README.adoc lib/lp-bootstrap.rb
asciidoctor --trace -Ilib -rlp-bootstrap.rb README.adoc -o README.html
lib/litprog.rb: README.html
MAKE_BOOTSTRAP_ARGS= -a 'litprog-file-map=litprog.rb>lp-bootstrap.rb' \
-a litprog-line-template= \
-a litprog-line-template-css=
update-bootstrap: test
asciidoctor --trace -Ilib -rlitprog.rb ${MAKE_BOOTSTRAP_ARGS} README.adoc -o README.html
self-check: lib/litprog.rb
mv lib/litprog.rb lib/lp-test.rb && \
asciidoctor --trace -Ilib -rlp-test.rb README.adoc -o README.html && \
diff -u lib/lp-test.rb lib/litprog.rb && \
rm lib/lp-test.rb
aweb-check: lib/litprog.rb test/aweb-alike.adoc test/aweb.reference
asciidoctor --trace -Ilib -rlitprog.rb test/aweb-alike.adoc -o /dev/null > test/aweb.stdout && \
diff -u test/aweb.reference test/aweb.result && \
diff -u test/aweb.stdout.reference test/aweb.stdout
noweb-check: lib/litprog.rb test/noweb-alike.adoc # TODO
asciidoctor --trace -Ilib -rlitprog.rb test/noweb-alike.adoc -o /dev/null
test: self-check aweb-check
update-bootstrap: lib/lp-bootstrap.rb
clean:
rm -rf README.html README.litprog.dot lib/litprog.rb lib/lp-test.rb css test/aweb.result test/aweb.stdout
.PHONY: self-check test update-bootstrap clean
.NOTPARALLEL: