diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-10-20 14:19:42 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-10-20 14:19:42 -0300 |
commit | 2f21d750a828dc89b73677f83469a49087a4e3dd (patch) | |
tree | 32b3cf70f6566be0e283f3265454657bce54dc5b /src | |
parent | e9a0335972f8fc5e261010bb38bb0fed698f3da9 (diff) |
fix src/fnt/Makefile
Diffstat (limited to 'src')
-rw-r--r-- | src/fnt/Makefile | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/src/fnt/Makefile b/src/fnt/Makefile index e1bb5b7..18123e0 100644 --- a/src/fnt/Makefile +++ b/src/fnt/Makefile @@ -14,22 +14,30 @@ # 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/>. -font-files = urwGothicDiamond-book \ - urwGothicDiamond-bookOblique \ - urwGothicDiamond-demi \ - urwGothicDiamond-demiOblique +fnt = urwGothicDiamond-book \ + urwGothicDiamond-bookOblique \ + urwGothicDiamond-demi \ + urwGothicDiamond-demiOblique -prefix-names = parabola_ -src-files = $(addprefix $(prefix-names),$(font-files)) -sfd-files = $(addsuffix _sfd3d0.sfd,$(src-files)) -ttf-src-files = $(addsuffix _sfd3d0.ttf,$(src-files)) -ttf-install-files = $(addsuffix .ttf,$(font-files)) +fnt-grp = $(addprefix parabola_,$(fnt)) +sfd = $(addsuffix _sfd3d0.sfd,$(fnt-grp)) +ttf-1st = $(addsuffix _sfd3d0.ttf,$(fnt-grp)) +ttf-2st = $(addsuffix _sfd3d0.ttf,$(fnt)) +ttf-3st = $(addsuffix .ttf,$(fnt)) +sfd-files = $(addprefix $(CURDIR)/,$(sfd)) +ttf-1st-files = $(addprefix $(CURDIR)/,$(ttf-1st)) +ttf-2st-files = $(addprefix $(CURDIR)/,$(ttf-2st)) +ttf-3st-files = $(addprefix $(CURDIR)/,$(ttf-3st)) +trg-dir = $(DESTDIR)/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-src-files) + rm -v $(ttf-3st-files) update-font-cache: fc-cache -s > /dev/null @@ -37,8 +45,8 @@ update-font-cache: mkfontdir $(DESTDIR)/fonts/TTF install: - install -vdm 755 $(DESTDIR)/fonts/TTF - install -vm 644 $(ttf-src-files) $(DESTDIR)/fonts/TTF/$(ttf-install-files) + install -vdm 755 $(trg-dir) + install -vm 644 $(ttf-3st-files) $(trg-dir) unistall: - rm -v $(DESTDIR)/fonts/TTF/$(ttf-install-files) + rm -v $(ttf-trg-files) |