From 201b62fc68398b37decbe0fde24dc94486db244e Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 14 Aug 2017 08:04:53 -0400 Subject: Support NO_REBUILD=1 for testing without rebuild --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3a53e93e..47dfbed1 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,11 @@ # anywhere. From the top level, the "all", "check", and "clean" # targets build, test, or clean everything. +# To run test suites without rebuilding, pass NO_REBUILD=1 to the +# build. This can be useful for testing binary interface compatibility +# as it enables you to rebuild libraries and rerun tests without +# relinking. + # Although this is not a GNU package and does not use automake, you # can still run make clean to remove everything that is compiled, make # distclean to remove everything that is generated by the end user, @@ -111,8 +116,12 @@ maintainer-clean: distclean $(RM) autofiles.zip .PHONY: $(TEST_TARGETS) + +NO_REBUILD ?= +ifneq ($(NO_REBUILD),1) $(foreach B,$(TEST_ITEMS),$(eval \ check_$(B): $(TARGETS_$(B)))) +endif .PHONY: $(foreach B,$(BUILD_ITEMS),build_$(B)) $(foreach B,$(BUILD_ITEMS),$(eval \ -- cgit v1.2.3-54-g00ecf