18dgj/figs/phase_diag.fig/Makefile

24 lines
509 B
Makefile
Raw Normal View History

2018-05-18 22:53:34 +00:00
PROJECTNAME=$(basename $(wildcard *.gnuplot))
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
all: $(PDFS)
$(PDFS):
gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tikz.tex, $@)
pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
install: $(PDFS)
cp $^ $(INSTALLDIR)/
clean-aux:
rm -f $(addsuffix .tikz.tex, $(PROJECTNAME))
rm -f $(addsuffix .aux, $(PROJECTNAME))
rm -f $(addsuffix .log, $(PROJECTNAME))
clean-pdf:
rm -f $(PDFS)
clean: clean-aux clean-pdf