aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-14 14:04:53 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-16 13:57:08 +0200
commit201b62fc68398b37decbe0fde24dc94486db244e (patch)
tree5235dbd25096c72193abf7f473ab63382e8eedbd /Makefile
parenta3f872020dd60e0c5ce97e615aec9e8f25711a8d (diff)
downloadqpdf-201b62fc68398b37decbe0fde24dc94486db244e.tar.zst
Support NO_REBUILD=1 for testing without rebuild
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
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 \