blob: 22fe0e8e6a940bdcf687542a1100d8efb67f8b26 (
plain)
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
|
NAME=punknova
SRCNAME=punkfont
VERSION=1003
SRC=source
TOOLS=tools
DOC=documentation
DOCSRC=$(DOC)/$(DOC)-sources
DIST=$(NAME)-$(VERSION)
FF=$(TOOLS)/build.py
FONTS=regular bold slanted boldslanted
DOCS=sample
MP=$(FONTS:%=$(SRC)/$(SRCNAME)-%.mp)
OTF=$(FONTS:%=$(NAME)-%.otf)
TEX=$(DOCS:%=$(DOCSRC)/%.tex)
PDF=$(DOCS:%=$(DOC)/%.pdf)
all: otf
otf: $(OTF)
doc: $(PDF)
$(NAME)-%.otf: $(SRC)/$(SRCNAME)-%.mp $(MP)
@echo "Building $@"
@$(FF) $< $@ $(VERSION)
$(DOC)/%.pdf: $(DOCSRC)/%.tex
@echo "Building $@"
@context --nonstopmode --result=$@ $< 1>/dev/null
dist: $(OTF) $(PDF)
@echo "Making dist tarball"
@mkdir -p $(DIST)/$(SRC)
@mkdir -p $(DIST)/$(TOOLS)
@mkdir -p $(DIST)/$(DOC)
@mkdir -p $(DIST)/$(DOCSRC)
@cp $(MP) $(DIST)/$(SRC)
@cp $(OTF) $(DIST)
@cp $(FF) $(DIST)/$(TOOLS)
@cp -r $(PDF) $(DIST)/$(DOC)
@cp -r $(TEX) $(DIST)/$(DOCSRC)
@cp -r Makefile NEWS $(DIST)
@cp README.md $(DIST)/README
@zip -r $(DIST).zip $(DIST)
clean:
@rm -rf $(OTF) $(DIST) $(DIST).zip
|