diff options
| author | Ian Jauslin <ian@jauslin.org> | 2022-10-17 20:59:01 -0400 | 
|---|---|---|
| committer | Ian Jauslin <ian@jauslin.org> | 2022-10-17 20:59:01 -0400 | 
| commit | bdf817efec1cfdd67cc6176a6664442fd98173ae (patch) | |
| tree | 93d0abe475c342b2c0cac0dfdb16e2fa018bf4e6 /figs/rods.fig/Makefile | |
Diffstat (limited to 'figs/rods.fig/Makefile')
| -rw-r--r-- | figs/rods.fig/Makefile | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/figs/rods.fig/Makefile b/figs/rods.fig/Makefile new file mode 100644 index 0000000..33b81e2 --- /dev/null +++ b/figs/rods.fig/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 | 
