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
#
$(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