X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc.mk;h=738b5ca11fbf3ea209a55f0d314676480331e3d9;hb=9ac3091579f2c3671a13c6785496e7a43a40c850;hp=46b6c4e05e6f5b8afcba46dd18031c6e93c343a6;hpb=6f573eb5dedb0625d1df9a6fdf9839bcaa9cba8e;p=ghc-hetmet.git diff --git a/ghc.mk b/ghc.mk index 46b6c4e..738b5ca 100644 --- a/ghc.mk +++ b/ghc.mk @@ -1212,3 +1212,15 @@ phase_0_builds: $(utils/genprimopcode_dist_depfile_c_asm) .PHONY: phase_1_builds phase_1_builds: $(PACKAGE_DATA_MKS) +# ----------------------------------------------------------------------------- +# Support for writing GHC passes in Coq + +compiler/hetmet/Makefile: + git submodule update --init compiler/hetmet + cd compiler/hetmet/; git checkout master +compiler/hetmet/build/CoqPass.hs: compiler/hetmet/Makefile $(wildcard compiler/hetmet/src/*.v) $(wildcard compiler/hetmet/src/*.hs) + cd compiler/hetmet; make +compiler/stage1/build/CoqPass.hs: compiler/hetmet/build/CoqPass.hs + cp compiler/hetmet/build/CoqPass.hs $@ +compiler/stage2/build/CoqPass.hs: compiler/hetmet/build/CoqPass.hs + cp compiler/hetmet/build/CoqPass.hs $@