Skip to content

Commit

Permalink
Just list all fonts explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Apr 24, 2012
1 parent 6446625 commit 15b90cb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,26 @@ ttf: $(DTTF)
web: $(WTTF) $(WOFF) $(EOTS) $(CSSS)
doc: $(PDFS)

$(WEB)/%.ttf: %.ttf $(BUILD)
$(NAME)-regular.ttf: $(SRC)/$(NAME)-regular.sfdir $(SRC)/$(NAME)-regular.fea $(FEAT) $(BUILD)
@echo " FF\t$@"
@mkdir -p $(WEB)
@$(FF) --input $< --output $@ --web 1>/dev/null 2>&1
@$(FF) --input $< --output $@ --version $(VERSION)

%.ttf: $(SRC)/%.sfdir $(SRC)/%.fea $(FEAT) $(BUILD)
$(NAME)-slanted.ttf: $(SRC)/$(NAME)-regular.sfdir $(SRC)/$(NAME)-regular.fea $(FEAT) $(BUILD)
@echo " FF\t$@"
@$(FF) --input $< --output $@ --version $(VERSION) --slant=7

$(NAME)-bold.ttf: $(SRC)/$(NAME)-bold.sfdir $(SRC)/$(NAME)-bold.fea $(FEAT) $(BUILD)
@echo " FF\t$@"
@$(FF) --input $< --output $@ --version $(VERSION)

$(NAME)-slanted.ttf: $(SRC)/$(NAME)-regular.sfdir $(BUILD)
$(NAME)-boldslanted.ttf: $(SRC)/$(NAME)-bold.sfdir $(SRC)/$(NAME)-bold.fea $(FEAT) $(BUILD)
@echo " FF\t$@"
@$(FF) --input $< --output $@ --version $(VERSION) --slant=7

$(NAME)-boldslanted.ttf: $(SRC)/$(NAME)-bold.sfdir $(BUILD)
$(WEB)/%.ttf: %.ttf $(BUILD)
@echo " FF\t$@"
@$(FF) --input $< --output $@ --version $(VERSION) --slant=7
@mkdir -p $(WEB)
@$(FF) --input $< --output $@ --web 1>/dev/null 2>&1

$(WEB)/%.woff: $(WEB)/%.ttf
@echo " FF\t$@"
Expand Down

0 comments on commit 15b90cb

Please sign in to comment.