summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-08-28 11:53:01 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-08-28 11:53:01 +0200
commitd176368fff6c3083378fb1d727cc6f35a15fabd3 (patch)
treee9495df89fc1bb8054572b87b05a5bda01834e4c /config.mk
parent141e3a8d45e140f9b2b1ea83cfcae13764e203cb (diff)
Only install icons to /usr/share when running make install app=1
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk21
1 files changed, 13 insertions, 8 deletions
diff --git a/config.mk b/config.mk
index c553a47..93bb1c3 100644
--- a/config.mk
+++ b/config.mk
@@ -1,9 +1,21 @@
PACKAGE ?= feh
VERSION ?= ${shell git describe --dirty}
+app ?= 0
+cam ?= 0
+curl ?= 1
+debug ?= 0
+help ?= 0
+xinerama ?= 1
+exif ?= 0
+
# Prefix for all installed files
PREFIX ?= /usr/local
-ICON_PREFIX ?= /usr/share/icons
+ICON_PREFIX ?= ${DESTDIR}${PREFIX}/share/icons
+
+ifeq (${app},1)
+ ICON_PREFIX = /usr/share/icons
+endif
# Directories for manuals, executables, docs, data, etc.
main_dir = ${DESTDIR}${PREFIX}
@@ -22,13 +34,6 @@ scalable_icon_dir = ${icon_dir}/scalable/apps
CFLAGS ?= -g -O2
CFLAGS += -Wall -Wextra -pedantic
-cam ?= 0
-curl ?= 1
-debug ?= 0
-help ?= 0
-xinerama ?= 1
-exif ?= 0
-
ifeq (${curl},1)
CFLAGS += -DHAVE_LIBCURL
LDLIBS += -lcurl