Ian Jauslin
summaryrefslogtreecommitdiff
blob: 826c6bbcffa107f0286a8c68616d33c510cc394e (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
29
30
31
32
PROJECTNAME=grid dimers interaction boundary dimer_contour dimer_pirogov_sinai dimer_pirogov_sinai_preflip dimer_pirogov_sinai_flip
LIBS=$(notdir $(wildcard libs/*))

PDFS=$(addsuffix .pdf, $(PROJECTNAME))
SOURCES=$(addsuffix .tikz.tex, $(PROJECTNAME))

all: $(PDFS)

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

$(SOURCES):
	python3 dimer_conf.py

$(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-sources:
	rm -f $(SOURCES)

clean: clean-libs clean-aux clean-tex clean-sources