26 lines
481 B
Makefile
26 lines
481 B
Makefile
|
PROJECTNAME=$(basename $(basename $(wildcard *.tikz.tex)))
|
||
|
LIBS=$(notdir $(wildcard libs/*))
|
||
|
|
||
|
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
|
||
|
|
||
|
all: $(PDFS)
|
||
|
|
||
|
$(PDFS): $(LIBS)
|
||
|
echo $(LIBS)
|
||
|
pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
|
||
|
|
||
|
$(LIBS):
|
||
|
ln -fs libs/$@ ./
|
||
|
|
||
|
clean-libs:
|
||
|
rm -f $(LIBS)
|
||
|
|
||
|
clean-aux:
|
||
|
rm -f $(addsuffix .aux, $(PROJECTNAME))
|
||
|
rm -f $(addsuffix .log, $(PROJECTNAME))
|
||
|
|
||
|
clean-tex:
|
||
|
rm -f $(PDFS)
|
||
|
|
||
|
clean: clean-libs clean-aux clean-tex
|