-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (59 loc) · 1.83 KB
/
Makefile
File metadata and controls
73 lines (59 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
PACKAGE = sourceserif
OTF_NAME = SourceSerif4
FONTNAME = SourceSerifFour
VENDOR = adobe
TEX_DIR = tex/latex/$(PACKAGE)
DOC_DIR = doc/latex/$(PACKAGE)
OTF_DIR = fonts/opentype/$(VENDOR)/$(PACKAGE)
MAP_OUT = fonts/map/dvips/$(PACKAGE)/$(FONTNAME).map
PKG_OUT = $(TEX_DIR)/$(PACKAGE)-type1-autoinst.sty
ENCS = lgr.enc
all: $(PACKAGE).tds.zip $(PACKAGE).pdf
fonts: $(PKG_OUT)
docs: fonts
$(MAKE) -C $(DOC_DIR)
$(PACKAGE).tds.zip: $(PACKAGE).files
zip $(PACKAGE).tds.zip -@ < $^
$(PACKAGE).zip: $(PACKAGE).tds.zip
create-ctan-zip $< $(PACKAGE)
$(PACKAGE).pdf: docs
cp doc/latex/$(PACKAGE)/*.pdf ./
$(PACKAGE).files: fonts docs
find tex/ -type f > $@
find fonts/ -type f >> $@
find doc/ -name "*.md" \
-o -name "*.txt" \
-o -name "*.pdf" \
-o -name "*.tex" >> $@
lgr.enc:
ln -sf $(shell kpsewhich CB.enc) lgr.enc
$(PKG_OUT): $(OTF_DIR)/$(OTF_NAME)-Regular.otf $(ENCS)
autoinst fonts/opentype/$(VENDOR)/$(PACKAGE)/* \
-sanserif \
-target=. \
-vendor="$(VENDOR)" \
-typeface="$(PACKAGE)" \
-encoding=OT1,T1,LY1,TS1,LGR \
-smallcaps \
-superiors \
-inferiors \
-fractions \
-noswash \
-notitling \
-noornaments
if [ $${UID:-0} -ne 0 ]; then updmap -user; fi
mv $(TEX_DIR)/$(FONTNAME).sty $(PKG_OUT)
clean:
$(MAKE) -C $(DOC_DIR) clean
find . -type d -empty -delete
rm -f $(ENCS)
rm -f *.zip
rm -f $(PACKAGE).files
distclean: clean
$(MAKE) -C $(DOC_DIR) distclean
rm -f *.log
rm -rf fonts/{enc,map,tfm,type1,vf}
rm -f tex/latex/$(PACKAGE)/*.fd
rm -f tex/latex/$(PACKAGE)/*-autoinst.sty
rm -f tex/latex/$(PACKAGE)/$(FONTNAME).sty
.PHONY: all docs clean distclean .files