Ian Jauslin
summaryrefslogtreecommitdiff
blob: f4dcf586eaa3f5c38e072caf89df3a255b648e69 (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
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