use compiler/coq/Makefile to decide if "git submodule update" is required
[ghc-hetmet.git] / ghc.mk
diff --git a/ghc.mk b/ghc.mk
index f7d236b..f818482 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -1215,10 +1215,10 @@ phase_1_builds: $(PACKAGE_DATA_MKS)
 # -----------------------------------------------------------------------------
 # Support for writing GHC passes in Coq
 
-compiler/coq/:
+compiler/coq/Makefile:
        git submodule update --init compiler/coq
        cd compiler/coq/; git checkout master
-compiler/coq/build/CoqPass.hs: compiler/coq/ $(wildcard compiler/coq/src/*.v) $(wildcard compiler/coq/src/*.hs)
+compiler/coq/build/CoqPass.hs: compiler/coq/Makefile $(wildcard compiler/coq/src/*.v) $(wildcard compiler/coq/src/*.hs)
        cd compiler/coq; make
 compiler/stage1/build/CoqPass.hs: compiler/coq/build/CoqPass.hs
        cp compiler/coq/build/CoqPass.hs $@