File: Makefile

package info (click to toggle)
wiki2beamer 0.10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 480 kB
  • sloc: python: 1,215; xml: 345; makefile: 108
file content (31 lines) | stat: -rw-r--r-- 405 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
26
27
28
29
30
31
#!/usr/bin/make

.PRECIOUS: %.tex

WIKIFILES=$(wildcard *.wiki)

all: $(patsubst %.wiki, %.pdf, $(WIKIFILES))


%.tex: %.wiki
	@echo "Translating $<"
	@python ../../code/wiki2beamer $< > $@


%.pdf: %.tex
	@echo "Running pdflatex in $<"	
	pdflatex $<
	pdflatex $<


%: %.pdf


proper: clean
	$(RM) *.pdf
	

clean:
	$(RM) *.aux *.log *.nav *.out *.snm *.toc
	$(RM) $(patsubst %.wiki, %.tex, $(WIKIFILES))