From 1b13e14750d355b301dc3904702268687216608c Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Thu, 4 May 2017 19:16:34 +0000 Subject: Initial commit --- Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eeb141d --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +PROJECTNAME=Jauslin_Lebowitz_2017 + +LIBS=$(patsubst libs/%, %, $(wildcard libs/*)) +FIGS=$(patsubst figs/%, %, $(wildcard figs/*)) + +all: $(PROJECTNAME) + +$(PROJECTNAME): $(LIBS) $(FIGS) + pdflatex -file-line-error $(PROJECTNAME).tex + pdflatex $(PROJECTNAME).tex + pdflatex -synctex=1 $(PROJECTNAME).tex + +$(LIBS): + ln -fs libs/$@ ./ + +$(FIGS): + make -C figs/$@ + ln -fs figs/$@/*.pdf ./ + + +clean-aux: + rm -f $(PROJECTNAME).aux + rm -f $(PROJECTNAME).log + rm -f $(PROJECTNAME).out + rm -f $(PROJECTNAME).toc + +clean-libs: + rm -f $(LIBS) + +clean-tex: + rm -f $(PROJECTNAME).pdf + rm -f $(PROJECTNAME).synctex.gz + +clean-figs: + for fig in $(FIGS); do make -C figs/"$$fig" clean; done + +clean-figs-aux: + for fig in $(FIGS); do make -C figs/"$$fig" clean-aux; done + +clean: clean-aux clean-tex clean-libs clean-figs -- cgit v1.2.3-70-g09d2