Ian Jauslin
summaryrefslogtreecommitdiff
blob: 33b81e25d43a9df1b10dd7aa1fa1024a1bc0d03c (plain)
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
PROJECTNAME=$(basename $(basename $(wildcard *.tikz.tex)))
LIBS=$(notdir $(wildcard libs/*))

PDFS=$(addsuffix .pdf, $(PROJECTNAME))

all: $(PDFS)

$(PDFS): $(LIBS)
	echo $(LIBS)
	pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)

install: $(PDFS)
	cp $^ $(INSTALLDIR)/

$(LIBS):
	ln -fs libs/$@ ./

clean-libs:
	rm -f $(LIBS)

clean-aux:
	rm -f $(addsuffix .aux, $(PROJECTNAME))
	rm -f $(addsuffix .log, $(PROJECTNAME))

clean-tex:
	rm -f $(PDFS)

clean: clean-libs clean-aux clean-tex