copying fixes over from sTeX

This commit is contained in:
Michael Kohlhase 2015-11-20 12:22:53 +01:00
parent 6284b783bd
commit f86d107546
3 changed files with 8 additions and 6 deletions

View File

@ -18,7 +18,8 @@
HERE = $(shell pwd)
TMP = /tmp
TDSCOLL ?= $(shell basename $$PWD)
#TDSCOLL ?= $(shell basename $$PWD)
TDSCOLL = proposal
EXPORTED = $(TMP)/$(TDSCOLL).exp
TDSDIR = $(TMP)/$(TDSCOLL).tds
TDSZIP = $(TMP)/$(TDSCOLL).tds.zip

View File

@ -5,7 +5,7 @@ doc: $(DTX.pdf) $(EXAMPLE.pdf)
$(EXAMPLE.pdf): %.pdf: %.tex $(DTX.sty) $(DTX.cls) $(IMG) $(EXAMPLE.deps)
$(PDFLATEX) $(firstword $<)
@if (grep Citation $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
@if (grep 'Please (re)run Biber' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
then biber $(patsubst %.dtx, %, $(firstword $<));fi
@if (grep "Writing index file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
then makeindex\
@ -25,7 +25,7 @@ ltxml: $(DTX.ltxml)
$(DTX.pdf): %.pdf: %.dtx $(IMG)
$(PDFLATEX) $(patsubst %.pdf,%.ins,$@)
$(PDFLATEX) $(firstword $<)
@if (grep Citation $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
@if (grep 'Please (re)run Biber' $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
then biber $(patsubst %.dtx, %, $(firstword $<));fi
@if (grep "Writing glossary file" $(patsubst %.dtx, %.log, $(firstword $<)) > /dev/null);\
then makeindex\
@ -43,15 +43,15 @@ $(DTX.pdf): %.pdf: %.dtx $(IMG)
$(DTX.sty): %.sty: %.ins %.dtx
$(PDFLATEX) $<
$(DTX.cls): %.cls: %.ins %.dtx
$(PDFLATEX) $<
$(DTX.sty.ltxml): %.sty.ltxml: %.ins %.dtx
$(PDFLATEX) $<
$(DTX.cls.ltxml): %.cls.ltxml: %.ins %.dtx
$(PDFLATEX) $<
$(DTX.cls): %.cls: %.ins %.dtx
$(PDFLATEX) $<
clean:
rm -f *~ *.log *.ilg *.out *.glo *.idx *.ilg *.blg

View File

@ -24,6 +24,7 @@ CTANDIR = /tmp/$(TDSCOLL)/$(CTANPREFIX)$(PACKAGE)
# the dependencies
SOURCES = $(DTX.sty) $(BIB)
TEXINPUTS := .:$(PREFIX)//:
BIBINPUTS := .:$(PREFIX)/../bib//:
BSTINPUTS := .:$(PREFIX)//:
# we want to quiet down pdflatex