summaryrefslogtreecommitdiff
path: root/fluxbox/debian/rules.d/050-configure_override.mk
blob: a7c6907d8a8c6462f22eaf3603dac8434aade6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Intercept the configure stage to throw it some flags.

FLUXBOX_VENDOR := $(shell \
	if dpkg-vendor --derives-from Ubuntu; then \
		echo Ubuntu; \
	else \
		echo Debian; \
	fi \
)

THEME_DEFAULT := $(shell \
	cat ./debian/additional-themes/defaults | \
		grep ^$(FLUXBOX_VENDOR) | \
		awk '{print $$2}' \
)

DEB_CONFIGURE_EXTRA_FLAGS += -with-style=$(DEB_STYLE_DIR)/$(THEME_DEFAULT)

override_dh_auto_configure:
	./configure $(DEB_CONFIGURE_EXTRA_FLAGS)
bgstack15