File: Makefile

package info (click to toggle)
fonts-play 1.002%2B20111215.1%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 4,096 kB
  • ctags: 19
  • sloc: makefile: 92
file content (55 lines) | stat: -rw-r--r-- 1,504 bytes parent folder | download
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
#!/bin/make -f
#
#Global targets will apply to all fonts dirs which have a Makefile
# for example "make ttf" will look for all subdirs with a Makefile
# and call the "ttf" target in those makefiles.
#
#Font-specific targets are called with "make fontdir-target"
# for example "make play-ttf" will look for play/Makefile
# and call the "ttf" target in that Makefile

MAKEFILES = $(wildcard */Makefile)
SUBDIRS = $(patsubst %/Makefile, %, $(MAKEFILES))
SUBDIRS_TTF = $(patsubst %, %-ttf, $(SUBDIRS))
SUBDIRS_OTF = $(patsubst %, %-otf, $(SUBDIRS))
SUBDIRS_MENU = $(patsubst %, %-menu, $(SUBDIRS))
SUBDIRS_SUBSET = $(patsubst %, %-subset, $(SUBDIRS))
SUBDIRS_BUILD_CLEAN = $(patsubst %, %-build-clean, $(SUBDIRS))
SUBDIRS_CLEAN = $(patsubst %, %-clean, $(SUBDIRS))

all: $(SUBDIRS)

ttf: $(SUBDIRS_TTF)

otf: $(SUBDIRS_OTF)

menu: $(SUBDIRS_MENU)

subset: $(SUBDIRS_SUBSET)

build-clean: $(SUBDIRS_BUILD_CLEAN)

clean: $(SUBDIRS_CLEAN)

$(SUBDIRS):
	$(MAKE) -C $@

$(SUBDIRS_TTF):
	$(MAKE) -C $(patsubst %-ttf, %, $@) ttf

$(SUBDIRS_OTF):
	$(MAKE) -C $(patsubst %-otf, %, $@) otf

$(SUBDIRS_MENU):
	$(MAKE) -C $(patsubst %-menu, %, $@) menu

$(SUBDIRS_SUBSET):
	$(MAKE) -C $(patsubst %-subset, %, $@) subset

$(SUBDIRS_BUILD_CLEAN):
	$(MAKE) -C $(patsubst %-build-clean, %, $@) build-clean

$(SUBDIRS_CLEAN):
	$(MAKE) -C $(patsubst %-clean, %, $@) clean

.PHONY: all $(SUBDIRS) $(SUBDIRS_BUILD_CLEAN) $(SUBDIRS_CLEAN) $(SUBDIRS_TTF) $(SUBDIRS_OTF) $(SUBDIRS_MENU) $(SUBDIRS_SUBSET) ttf otf build-clean clean