2017-05-04 19:16:34 +00:00
|
|
|
PROJECTNAME=Jauslin_Lebowitz_2017
|
2017-09-08 05:59:24 +00:00
|
|
|
LIBS=$(notdir $(wildcard libs/*))
|
|
|
|
FIGS=$(notdir $(wildcard figs/*.fig))
|
2017-05-04 19:16:34 +00:00
|
|
|
|
2017-09-08 05:59:24 +00:00
|
|
|
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
|
|
|
|
SYNCTEXS=$(addsuffix .synctex.gz, $(PROJECTNAME))
|
2017-05-04 19:16:34 +00:00
|
|
|
|
|
|
|
all: $(PROJECTNAME)
|
|
|
|
|
|
|
|
$(PROJECTNAME): $(LIBS) $(FIGS)
|
2017-09-08 05:59:24 +00:00
|
|
|
pdflatex -file-line-error $@.tex
|
|
|
|
pdflatex -file-line-error $@.tex
|
|
|
|
pdflatex -synctex=1 $@.tex
|
|
|
|
|
|
|
|
|
|
|
|
libs: $(LIBS)
|
2017-05-04 19:16:34 +00:00
|
|
|
|
|
|
|
$(LIBS):
|
|
|
|
ln -fs libs/$@ ./
|
|
|
|
|
2017-09-08 05:59:24 +00:00
|
|
|
figs: $(FIGS)
|
|
|
|
|
2017-05-04 19:16:34 +00:00
|
|
|
$(FIGS):
|
|
|
|
make -C figs/$@
|
|
|
|
ln -fs figs/$@/*.pdf ./
|
|
|
|
|
|
|
|
|
|
|
|
clean-aux:
|
2017-09-08 05:59:24 +00:00
|
|
|
rm -f $(addsuffix .aux, $(PROJECTNAME))
|
|
|
|
rm -f $(addsuffix .log, $(PROJECTNAME))
|
|
|
|
rm -f $(addsuffix .out, $(PROJECTNAME))
|
2017-05-04 19:16:34 +00:00
|
|
|
|
|
|
|
clean-libs:
|
|
|
|
rm -f $(LIBS)
|
|
|
|
|
|
|
|
clean-figs:
|
2017-09-08 05:59:24 +00:00
|
|
|
$(foreach fig,$(addprefix figs/, $(FIGS)), make -C $(fig) clean; )
|
|
|
|
rm -f $(notdir $(wildcard figs/*.fig/*.pdf))
|
2017-05-04 19:16:34 +00:00
|
|
|
|
|
|
|
clean-figs-aux:
|
2017-09-08 05:59:24 +00:00
|
|
|
$(foreach fig,$(addprefix figs/, $(FIGS)), make -C $(fig) clean-aux; )
|
|
|
|
|
|
|
|
|
|
|
|
clean-tex:
|
|
|
|
rm -f $(PDFS) $(SYNCTEXS)
|
2017-05-04 19:16:34 +00:00
|
|
|
|
|
|
|
clean: clean-aux clean-tex clean-libs clean-figs
|