File: Makefile

package info (click to toggle)
fonts-fantasque-sans 1.7.2~alpha.3~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 17,084 kB
  • sloc: sh: 213; python: 149; makefile: 24
file content (27 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (2)
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
SOURCES=$(wildcard Sources/FantasqueSansMono*.sfdir)
BASENAMES=$(patsubst Sources/%.sfdir,%,$(SOURCES))
TTF_FILES=$(patsubst %,Variants/Normal/TTF/%.ttf,$(BASENAMES))
ZIP_FILE=Variants/Normal/FantasqueSansMono.zip

INSTALLED_TTF_FILES=$(patsubst %,~/.fonts/%.ttf,$(BASENAMES))

all: $(TTF_FILES)

$(ZIP_FILE): $(TTF_FILES)
	Scripts/zip-all-variants Variants

Variants/Normal/TTF/%.ttf: Sources/%.sfdir
	mkdir -p Variants
	Scripts/validate-font "$<"
	Scripts/generate-font-variants "$<" Variants

.PHONY: install clean
install: $(INSTALLED_TTF_FILES)

$(INSTALLED_TTF_FILES): $(TTF_FILES)
	mkdir -p ~/.fonts/
	cp $^ ~/.fonts/
	fc-cache -f

clean:
	rm -rf Variants