summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-10-20 15:55:52 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-10-20 15:55:52 -0300
commit2d285abfd16ebbe1a0b6e150b6ebcf6b7dd213d1 (patch)
tree810316ecfa7b79b238b7052ee597fd68f311dcd9
parent24b624df3a2a5552e9dffa4aea725cbd060dd9a4 (diff)
Makefiles: fix variables
-rw-r--r--Makefile1
-rw-r--r--src/fnt/Makefile6
2 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1334f83..52b6c45 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,6 @@
PREFIX ?= /usr
SHAREDIR ?= $(PREFIX)/share
-DESTDIR ?= $(SHAREDIR)
all: fonts
fonts:
diff --git a/src/fnt/Makefile b/src/fnt/Makefile
index 1468655..1f2ada7 100644
--- a/src/fnt/Makefile
+++ b/src/fnt/Makefile
@@ -40,7 +40,7 @@ ttf-2st-files = $(addprefix $(CURDIR)/,$(ttf-2st))
ttf-3st-files = $(addprefix $(CURDIR)/,$(ttf-3st))
# TTF target files:
-trg-dir = $(DESTDIR)/fonts/TTF
+trg-dir = $(DESTDIR)$(SHAREDIR)/fonts/TTF
ttf-trg-files = $(addprefix $(trg-dir)/,$(ttf-3st))
all:
@@ -53,8 +53,8 @@ clean:
update-font-cache:
fc-cache -s > /dev/null
- mkfontscale $(DESTDIR)/fonts/TTF
- mkfontdir $(DESTDIR)/fonts/TTF
+ mkfontscale $(trg-dir)
+ mkfontdir $(trg-dir)
install:
install -vdm 755 $(trg-dir)