configure: Make tools/PROGRAMS agnostic to tools presence

In order to make tools indivdiually selectable for compiling, we don't
want to override earlier tools - so use '+=' rather than a plain '='
when adding each tool to the set of PROGRAMS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-04-01 15:52:52 +01:00
parent cdac2b369a
commit 61d2baa430
1 changed files with 4 additions and 2 deletions

View File

@ -26,10 +26,12 @@ AM_CFLAGS = \
drivermandir = $(DRIVER_MAN_DIR)
policydir = $(datarootdir)/polkit-1/actions
bin_PROGRAMS =
noinst_PROGRAMS =
libexec_PROGRAMS =
if BUILD_TOOLS
bin_PROGRAMS = intel-virtual-output
bin_PROGRAMS += intel-virtual-output
driverman_DATA = intel-virtual-output.$(DRIVER_MAN_SUFFIX)
endif
@ -47,7 +49,7 @@ dri3info_LDADD = $(X11_DRI3_LIBS) $(DRI_LIBS)
endif
if BUILD_BACKLIGHT_HELPER
libexec_PROGRAMS = xf86-video-intel-backlight-helper
libexec_PROGRAMS += xf86-video-intel-backlight-helper
nodist_policy_DATA = org.x.xf86-video-intel.backlight-helper.policy
backlight_helper = $(libexecdir)/xf86-video-intel-backlight-helper