ports/lang/compcert/patches/patch-Makefile

26 lines
637 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Convenience test target
Index: Makefile
--- Makefile.orig
+++ Makefile
2023-08-18 18:38:43 +00:00
@@ -229,7 +229,7 @@ runtime:
2023-08-16 22:26:55 +00:00
FORCE:
-.PHONY: proof extraction runtime FORCE
+.PHONY: proof extraction runtime test FORCE
documentation: $(FILES)
mkdir -p doc/html
2023-08-18 18:38:43 +00:00
@@ -341,6 +341,10 @@ ifeq ($(INSTALL_COQDEV),true)
2023-08-16 22:26:55 +00:00
install -m 0644 ./compcert.config $(DESTDIR)$(COQDEVDIR)
@(echo "To use, pass the following to coq_makefile or add the following to _CoqProject:"; echo "-R $(COQDEVDIR) compcert") > $(DESTDIR)$(COQDEVDIR)/README
endif
+
+test:
+ env CCOMPOPTS=-Wl,-z,notext $(MAKE) -C test
+ env CCOMPOPTS=-Wl,-z,notext $(MAKE) -C test test
clean: