24hj/figs/GFc.fig/Makefile

32 lines
547 B
Makefile
Raw Normal View History

2024-02-05 18:44:30 +00:00
PROJECTNAME=GFc
LIBS=$(notdir $(wildcard libs/*))
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
all: $(PDFS)
$(PDFS): $(LIBS) GFc.tikz.tex
pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
GFc.tikz.tex:
python3 GFc_gen.py > GFc.tikz.tex
install: $(PDFS)
cp $^ $(INSTALLDIR)/
$(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)
rm -f GFc.tikz.tex
clean: clean-libs clean-aux clean-tex