forked from flatpak/freedesktop-sdk-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-fonts
25 lines (24 loc) · 966 Bytes
/
Makefile-fonts
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
all:
install -m 0755 -d /usr/share/fonts/$(NAME)
install -p -m 644 $(TTFDIR)*.ttf /usr/share/fonts/$(NAME)
install -m 0755 -d /usr/share/fontconfig/conf.avail /etc/fonts/conf.d
for f in $(FAMILIES) ; do \
if [ "x$(SRCPRIO)" == "x" ] ; then \
FILE=$(NAME)-$$f.conf; \
else \
FILE=$(SRCPRIO)-$(NAME)-$$f.conf; \
fi; \
install -m 0644 -p $(CONFDIR)$$FILE /usr/share/fontconfig/conf.avail/$(PRIO)-$$FILE; \
ln -s /usr/share/fontconfig/conf.avail/$(PRIO)-$$FILE /etc/fonts/conf.d/$(PRIO)-$$FILE; \
done
if [ "x$(FAMILIES)" == "x" ] ; then \
FILE=$(NAME).conf; \
install -m 0644 -p $(CONFDIR)$$FILE /usr/share/fontconfig/conf.avail/$(PRIO)-$$FILE; \
ln -s /usr/share/fontconfig/conf.avail/$(PRIO)-$$FILE /etc/fonts/conf.d/$(PRIO)-$$FILE; \
fi
for f in $(EXTRA_CONFS) ; do \
install -m 0644 -p $(CONFDIR)$$f /usr/share/fontconfig/conf.avail/$$f; \
ln -s /usr/share/fontconfig/conf.avail/$$f /etc/fonts/conf.d/$$f; \
done
install:
true