ADD: make running pdflatex configurable
This commit is contained in:
parent
e62b362835
commit
2c76905db8
7
Makefile
7
Makefile
@ -14,7 +14,12 @@ export $TEXINPUTS
|
|||||||
|
|
||||||
DEPFLAGS = -M -MP -MF $(DEPDIR)/$*.d
|
DEPFLAGS = -M -MP -MF $(DEPDIR)/$*.d
|
||||||
|
|
||||||
|
|
||||||
|
ifneq ("$(wildcard .pdflatex)","")
|
||||||
|
LATEXMK=export TEXINPUTS=$(TEXINPUTS);latexmk -use-make -f $(DEPFLAGS) -pdf $(subst .pdf,.tex,$@) 1>>$(subst .pdf,.log,$@) 2>>$(subst .pdf,.log,$@)
|
||||||
|
else
|
||||||
LATEXMK=export TEXINPUTS=$(TEXINPUTS);latexmk -use-make -f $(DEPFLAGS) -pdflua $(subst .pdf,.tex,$@) 1>>$(subst .pdf,.log,$@) 2>>$(subst .pdf,.log,$@)
|
LATEXMK=export TEXINPUTS=$(TEXINPUTS);latexmk -use-make -f $(DEPFLAGS) -pdflua $(subst .pdf,.tex,$@) 1>>$(subst .pdf,.log,$@) 2>>$(subst .pdf,.log,$@)
|
||||||
|
endif
|
||||||
|
|
||||||
.SECONDARY: .latexmkrc
|
.SECONDARY: .latexmkrc
|
||||||
.PHONY: clean watermark IEEE base
|
.PHONY: clean watermark IEEE base
|
||||||
@ -104,6 +109,6 @@ clean:
|
|||||||
@-rm -rf *.nav
|
@-rm -rf *.nav
|
||||||
@-rm -rf *.snm
|
@-rm -rf *.snm
|
||||||
@-rm -rf *.vrb
|
@-rm -rf *.vrb
|
||||||
@-for i in `find -name '*.dep'`; do f=`echo $$i | sed 's/.dep//'`; rm $$f; rm $$i; done
|
@-for i in `find . -name '*.dep'`; do f=`echo $$i | sed 's/.dep//'`; rm $$f; rm $$i; done
|
||||||
|
|
||||||
include $(wildcard $(patsubst %,$(DEPDIR)/%.d,$(basename $(SRCS))))
|
include $(wildcard $(patsubst %,$(DEPDIR)/%.d,$(basename $(SRCS))))
|
||||||
|
Loading…
Reference in New Issue
Block a user