diff options
Diffstat (limited to 'Master/texmf-dist/doc/fonts/xits/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/fonts/xits/Makefile | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/fonts/xits/Makefile b/Master/texmf-dist/doc/fonts/xits/Makefile index cc97a6de672..cb5d52f8c3e 100644 --- a/Master/texmf-dist/doc/fonts/xits/Makefile +++ b/Master/texmf-dist/doc/fonts/xits/Makefile @@ -1,24 +1,17 @@ NAME=xits -VERSION=1.107 +VERSION=1.108 SRC=sources DOC=documentation +TOOLS=tools DOCSRC=$(DOC)/$(DOC)-$(SRC) DIST=$(NAME)-$(VERSION) PY=python -POSTPROCESS=./postprocess.py - -define $(NAME)SCRIPT -import fontforge, sys -f = fontforge.open(sys.argv[1]) -if len(sys.argv) > 3: - f.mergeFeature(sys.argv[3]) -f.version = "$(VERSION)" -f.generate(sys.argv[2], flags=("round", "opentype")) -endef - -export $(NAME)SCRIPT +PY3=python3 +BUILD=$(TOOLS)/build.py +POSTPROCESS=$(TOOLS)/postprocess.py +COVERAGE=$(TOOLS)/fontcoverage.py FONTS=math mathbold regular bold italic bolditalic DOCS=user-guide xits-specimen @@ -33,22 +26,22 @@ all: otf otf: $(OTF) -xits-math.otf: $(SRC)/xits-math.sfd Makefile $(POSTPROCESS) +xits-math.otf: $(SRC)/xits-math.sfd Makefile $(BUILD) $(POSTPROCESS) @echo "Building $@" - @$(PY) -c "$$$(NAME)SCRIPT" $< $@ - @$(POSTPROCESS) $@ + @$(PY) $(BUILD) $< $@ $(VERSION) + @$(PY) $(POSTPROCESS) $@ @mv $@.post $@ -xits-mathbold.otf: $(SRC)/xits-mathbold.sfd Makefile $(POSTPROCESS) +xits-mathbold.otf: $(SRC)/xits-mathbold.sfd Makefile $(BUILD) $(POSTPROCESS) @echo "Building $@" - @$(PY) -c "$$$(NAME)SCRIPT" $< $@ - @$(POSTPROCESS) $@ + @$(PY) $(BUILD) $< $@ $(VERSION) + @$(PY) $(POSTPROCESS) $@ @mv $@.post $@ -%.otf: $(SRC)/%.sfd Makefile $(SRC)/$(FEA) $(POSTPROCESS) +%.otf: $(SRC)/%.sfd Makefile $(SRC)/$(FEA) $(BUILD) $(POSTPROCESS) @echo "Building $@" - @$(PY) -c "$$$(NAME)SCRIPT" $< $@ $(SRC)/$(FEA) - @$(POSTPROCESS) $@ + @$(PY) $(BUILD) $< $@ $(VERSION) $(SRC)/$(FEA) + @$(PY) $(POSTPROCESS) $@ @mv $@.post $@ doc: $(PDF) @@ -57,21 +50,23 @@ $(DOC)/%.pdf: $(DOCSRC)/%.tex @echo "Building $@" @context --nonstopmode --result=$@ $< 1>/dev/null -FONTLOG.txt: FONTLOG.txt.in +FONTLOG.txt: FONTLOG.txt.in $(COVERAGE) $(OTF) @echo "Generating $@" - @./tools/fontcoverage.py tools/Blocks.txt $< $(SFD) > $@ + @$(PY3) $(COVERAGE) tools/Blocks.txt $< $(OTF) $@ dist: $(OTF) $(PDF) FONTLOG.txt @echo "Making dist tarball" @mkdir -p $(DIST)/$(SRC) @mkdir -p $(DIST)/$(DOC) @mkdir -p $(DIST)/$(DOCSRC) + @mkdir -p $(DIST)/$(TOOLS) @cp $(SFD) $(DIST)/$(SRC) @cp $(SRC)/$(FEA) $(DIST)/$(SRC) @cp $(OTF) $(DIST) + @cp $(POSTPROCESS) $(BUILD) $(COVERAGE) $(DIST)/$(TOOLS) @cp -r $(PDF) $(DIST)/$(DOC) @cp -r $(TEX) $(DIST)/$(DOCSRC) - @cp -r $(POSTPROCESS) Makefile OFL-FAQ.txt OFL.txt FONTLOG.txt tex $(DIST) + @cp -r Makefile OFL-FAQ.txt OFL.txt FONTLOG.txt tex $(DIST) @cp README.md $(DIST)/README.txt @zip -r $(DIST).zip $(DIST) |