24 lines
509 B
Makefile
24 lines
509 B
Makefile
|
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
|