diff options
author | Ian Jauslin <jauslin@ias.edu> | 2019-05-13 22:20:51 -0400 |
---|---|---|
committer | Ian Jauslin <jauslin@ias.edu> | 2019-05-13 22:20:51 -0400 |
commit | d0c870377cc4e0388a343a6297f7ec5fa54adf16 (patch) | |
tree | c78480b7f9f1e70f1bd9ebb84a8f6aae2e754f4e /figs/libs |
As presented at MSU on 2019-05-02v1.0
Diffstat (limited to 'figs/libs')
-rw-r--r-- | figs/libs/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/figs/libs/Makefile b/figs/libs/Makefile new file mode 100644 index 0000000..33b81e2 --- /dev/null +++ b/figs/libs/Makefile @@ -0,0 +1,28 @@ +PROJECTNAME=$(basename $(basename $(wildcard *.tikz.tex))) +LIBS=$(notdir $(wildcard libs/*)) + +PDFS=$(addsuffix .pdf, $(PROJECTNAME)) + +all: $(PDFS) + +$(PDFS): $(LIBS) + echo $(LIBS) + pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@) + +install: $(PDFS) + cp $^ $(INSTALLDIR)/ + +$(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: clean-libs clean-aux clean-tex |