From d176368fff6c3083378fb1d727cc6f35a15fabd3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 28 Aug 2016 11:53:01 +0200 Subject: Only install icons to /usr/share when running make install app=1 --- config.mk | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'config.mk') 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 -- cgit v1.2.3