26 lines
535 B
Makefile
26 lines
535 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-dat:
|
|
rm -f $(DATS)
|
|
|
|
clean-tex:
|
|
rm -f $(PDFS)
|
|
|
|
clean: clean-aux clean-tex
|