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