summaryrefslogtreecommitdiff
path: root/Makefile.font
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-06-20 19:10:56 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-06-20 19:10:56 -0300
commitf34f20da178653f39036e65366b65841de6b13e3 (patch)
treeb4c79e5c802dc96e2093eccabde704e4c34704f2 /Makefile.font
parentbb250b720051411d7647eb28806b8e33dc748c2b (diff)
update name and licenses
Diffstat (limited to 'Makefile.font')
-rw-r--r--Makefile.font67
1 files changed, 67 insertions, 0 deletions
diff --git a/Makefile.font b/Makefile.font
new file mode 100644
index 0000000..808fbde
--- /dev/null
+++ b/Makefile.font
@@ -0,0 +1,67 @@
+# script to build Parabola Art Collections.
+# Copyright (C) 2015 Márcio Alexandre Silva Delgado <coadde@parabola.nu>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+PREFIX ?= /usr
+SHAREDIR ?= $(PREFIX)/share
+
+# fonts list:
+fnt = urwGothicDiamond-book \
+ urwGothicDiamond-bookOblique \
+ urwGothicDiamond-demi \
+ urwGothicDiamond-demiOblique
+
+# fonts group list:
+fnt-grp = $(addprefix parabola_,$(fnt))
+
+# SFD source list:
+sfd = $(addsuffix _sfd3d0.sfd,$(fnt-grp))
+
+# TTF source list:
+ttf-1st = $(addsuffix _sfd3d0.ttf,$(fnt-grp))
+ttf-2st = $(addsuffix _sfd3d0.ttf,$(fnt))
+ttf-3st = $(addsuffix .ttf,$(fnt))
+
+# SFD source files:
+sfd-files = $(addprefix $(CURDIR)/,$(sfd))
+
+# TTF source files:
+ttf-1st-files = $(addprefix $(CURDIR)/,$(ttf-1st))
+ttf-2st-files = $(addprefix $(CURDIR)/,$(ttf-2st))
+ttf-3st-files = $(addprefix $(CURDIR)/,$(ttf-3st))
+
+# TTF target files:
+trg-dir = $(DESTDIR)$(SHAREDIR)/fonts/TTF
+ttf-trg-files = $(addprefix $(trg-dir)/,$(ttf-3st))
+
+all:
+ $(CURDIR)/makefont.pe $(sfd-files)
+ rename -v parabola_ '' $(ttf-1st-files)
+ rename -v _sfd3d0.ttf .ttf $(ttf-2st-files)
+
+clean:
+ rm -v $(ttf-3st-files)
+
+update-font-cache:
+ fc-cache -s > /dev/null
+ mkfontscale $(trg-dir)
+ mkfontdir $(trg-dir)
+
+install:
+ install -vdm 755 $(trg-dir)
+ install -vm 644 $(ttf-3st-files) $(trg-dir)
+
+unistall:
+ rm -v $(ttf-trg-files)