22jb/figs/bilayer.fig/Makefile

24 lines
446 B
Makefile
Raw Normal View History

2022-06-14 14:32:34 +00:00
PROJECTNAME=$(basename $(basename $(wildcard *.tikz.tex)))
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
all: $(PDFS)
$(PDFS):
pdflatex -jobname $(basename $@) $(patsubst %.pdf, %.tikz.tex, $@)
install: $(PROJECTNAME)
cp $^.pdf $(INSTALLDIR)/
clean-aux:
rm -f $(addsuffix .aux, $(PROJECTNAME))
rm -f $(addsuffix .log, $(PROJECTNAME))
rm -f $(addsuffix .out, $(PROJECTNAME))
clean-tex:
rm -f $(PDFS) $(SYNCTEXS)
clean: clean-aux clean-tex