17jl/Makefile

48 lines
928 B
Makefile
Raw Permalink Normal View History

2017-05-04 19:16:34 +00:00
PROJECTNAME=Jauslin_Lebowitz_2017
LIBS=$(notdir $(wildcard libs/*))
FIGS=$(notdir $(wildcard figs/*.fig))
2017-05-04 19:16:34 +00:00
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
SYNCTEXS=$(addsuffix .synctex.gz, $(PROJECTNAME))
2017-05-04 19:16:34 +00:00
all: $(PROJECTNAME)
$(PROJECTNAME): $(LIBS) $(FIGS)
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/$@ ./
figs: $(FIGS)
2017-05-04 19:16:34 +00:00
$(FIGS):
make -C figs/$@
ln -fs figs/$@/*.pdf ./
clean-aux:
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:
$(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:
$(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