From: Alan T. DeKok Date: Sat, 10 Apr 2021 13:14:00 +0000 (-0400) Subject: make sql_foo tests depend on rlm_sql.la, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf84eb2d98da0912ee1712cb25f8844f420eaba0;p=thirdparty%2Ffreeradius-server.git make sql_foo tests depend on rlm_sql.la, too --- diff --git a/src/tests/modules/all.mk b/src/tests/modules/all.mk index c9166f0f15..4736c50666 100644 --- a/src/tests/modules/all.mk +++ b/src/tests/modules/all.mk @@ -41,9 +41,6 @@ else ifeq "$(wildcard src/tests/modules/${1}/all.mk)" "" FILES_SKIP += ${2} else - # the output file depends on the library, too. - $(BUILD_DIR)/tests/modules/${2}.out: rlm_${1}.la - -include src/tests/modules/${1}/all.mk ifdef ${1}_require_test_server @@ -73,6 +70,11 @@ $(eval $(call TEST_BOOTSTRAP)) # $(foreach x, $(FILES), $(eval $$(OUTPUT.$(TEST))/$x: $(patsubst %,$(BUILD_DIR)/lib/rlm_%.la,$(patsubst %/,%,$(firstword $(subst /, ,$(dir $x))))))) +# +# sql_foo depends on rlm_sql, too. +# +$(foreach x, $(filter sql_%,$(FILES)), $(eval $$(OUTPUT.$(TEST))/$x: $(patsubst %,$(BUILD_DIR)/lib/rlm_sql.la,$(patsubst %/,%,$(firstword $(subst /, ,$(dir $x))))))) + # # Files in the output dir depend on the unit tests