File: Makefile

package info (click to toggle)
pandoc-include 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 448 kB
  • sloc: xml: 488; python: 456; ansic: 52; makefile: 17; cpp: 5
file content (25 lines) | stat: -rw-r--r-- 830 bytes parent folder | download | duplicates (2)
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
BIN ?= pandoc-include

test.pdf: test.md ../pandoc_include/main.py
	pandoc $< --filter $(BIN) -o test.pdf
	# pandoc $< -t json | python3 run.py | pandoc -f json -o test.pdf
	#pandoc $< --filter pandoc-include -o test-out.pdf
	#pandoc test.md --filter pandoc-include -o test-out.md
	#pandoc entryTest/test.md --filter pandoc-include -o entryTest/test-out.md

entryTest.pdf: entryTest/test.md ../pandoc_include/main.py
	pandoc $< --filter pandoc-include -o entry-test.pdf

.PHONY: debug
debug:
	# pandoc debug.md -t json | python3 run.py | pandoc -f json -o debug.pdf
	pandoc debug.md --filter pandoc-include -o debug.pdf

.PHONY: clean
clean:
	rm -f test-out.md test-out.pdf test.pdf included/test.out debug.pdf

.PHONY: nixpkgs
nixpkgs:
	pandoc test.md -t json | ${NIXPKGS}/result/bin/pandoc-include | pandoc -f json -o test.pdf