summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-07-30 12:23:56 +0100
committerYann Herklotz <git@yannherklotz.com>2022-07-30 12:23:56 +0100
commitbc2dd8dc8a53f5af4324d55f1eb13e840dd9d3b6 (patch)
treed6dcea50bfe2d813df6175728f42aebe22a397dc
parent8f08a16835cfc81c8cf65c921265bc4e29d327bb (diff)
downloadpred-aware-ai-bc2dd8dc8a53f5af4324d55f1eb13e840dd9d3b6.tar.gz
pred-aware-ai-bc2dd8dc8a53f5af4324d55f1eb13e840dd9d3b6.zip
Add tangling support to Makefile
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bb42417..e51f7ff 100644
--- a/Makefile
+++ b/Makefile
@@ -9,13 +9,18 @@ COQMAKE := $(COQBIN)coq_makefile
VS := Main.v
-all: Makefile.coq _CoqProject
+all: Makefile.coq _CoqProject $(VS)
$(MAKE) -f Makefile.coq
+Main.v: main.org
+ @echo "TANGLE" $<
+ @emacs -batch -find-file main.org -funcall org-babel-tangle
+
Makefile.coq _CoqProject: force
@echo "COQMAKE Makefile.coq"
- $(COQMAKE) $(COQINCLUDES) $(VS) -o Makefile.coq
- echo "$(COQINCLUDES)" >_CoqProject
+ @$(COQMAKE) $(COQINCLUDES) $(VS) -o Makefile.coq
+ @echo "CREATE _CoqProject"
+ @echo "$(COQINCLUDES)" >_CoqProject
force: