From 4bee26c00436fe60093cedaa0ec7d48985be625d Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Mon, 21 Jan 2013 15:39:42 +0100 Subject: [PATCH] config.mk cleanups --- config.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config.mk b/config.mk index 6e78899..78c340f 100644 --- a/config.mk +++ b/config.mk @@ -20,14 +20,16 @@ XINERAMAFLAGS = -DXINERAMA INIFLAGS = -DINI_ALLOW_MULTILINE=0 -PKG_CONFIG=$(shell which pkg-config) +PKG_CONFIG:=$(shell which pkg-config) ifeq (${PKG_CONFIG}, ${EMPTY}) $(error "Failed to find pkg-config, please make sure it is installed) endif +pkg_config_packs:="dbus-1 libxdg-basedir x11 freetype2 xext xft xscrnsaver" + # includes and libs -INCS = $(shell ${PKG_CONFIG} --cflags dbus-1 libxdg-basedir x11 freetype2 xext xft xscrnsaver) -LIBS = -lm -L${X11LIB} -lXss ${XINERAMALIBS} $(shell ${PKG_CONFIG} --libs dbus-1 libxdg-basedir x11 freetype2 xext xft xscrnsaver) +INCS := $(shell ${PKG_CONFIG} --cflags ${pkg_config_packs}) +LIBS := -lm -L${X11LIB} -lXss ${XINERAMALIBS} $(shell ${PKG_CONFIG} --libs ${pkg_config_packs}) ifeq (${INCS}, ${EMPTY}) $(error "pkg-config failed, see errors above")