From acdbc4e6cbb1d2ec161cbfa24ad80c3ce7ed6ea8 Mon Sep 17 00:00:00 2001
From: Ralf Jung <jung@mpi-sws.org>
Date: Thu, 16 Jul 2020 09:23:05 +0200
Subject: [PATCH] permit local Makefile customizations and extra coqfiles

---
 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 331cb03f8..163ff30fb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+# Permit local customization
+-include Makefile.local
+
 # Forward most targets to Coq makefile (with some trick to make this phony)
 %: Makefile.coq phony
 	+@make -f Makefile.coq $@
@@ -14,7 +17,7 @@ clean: Makefile.coq
 
 # Create Coq Makefile.
 Makefile.coq: _CoqProject Makefile
-	"$(COQBIN)coq_makefile" -f _CoqProject -o Makefile.coq
+	"$(COQBIN)coq_makefile" -f _CoqProject -o Makefile.coq $(EXTRA_COQFILES)
 
 # Install build-dependencies
 build-dep/opam: opam Makefile
@@ -36,6 +39,7 @@ build-dep: build-dep/opam phony
 Makefile: ;
 _CoqProject: ;
 opam: ;
+Makefile.local: ;
 
 # Phony wildcard targets
 phony: ;
-- 
GitLab