File: Makefile

package info (click to toggle)
pg-auto-failover 2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,368 kB
  • sloc: ansic: 58,369; python: 5,515; sql: 3,177; makefile: 629; sh: 35
file content (28 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (3)
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
SRC = $(wildcard arch*.tex fsm.tex)
PDF = $(SRC:.tex=.pdf)
SVG = $(SRC:.tex=.svg)
PNG = $(SRC:.tex=.png)

all: pdf svg png ;

pdf: $(SRC) $(PDF) ;
svg: $(SRC) $(SVG) ;
png: $(SRC) $(PNG) ;

clean:
	latexmk -C
	rm -rf $(PDF)
	rm -rf $(SVG)
	rm -rf $(PNG)

%.pdf: %.tex common.tex
	latexmk -silent -lualatex --interaction=nonstopmode -shell-escape $<
	latexmk -c

%.png: %.pdf
	pdftocairo -singlefile -r 300 -transp -png $<

%.svg: %.pdf
	pdftocairo -svg $<

.PHONY: clean