diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-08-28 11:53:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-08-28 11:53:01 +0200 |
commit | d176368fff6c3083378fb1d727cc6f35a15fabd3 (patch) | |
tree | e9495df89fc1bb8054572b87b05a5bda01834e4c /config.mk | |
parent | 141e3a8d45e140f9b2b1ea83cfcae13764e203cb (diff) |
Only install icons to /usr/share when running make install app=1
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -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 |