diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-04-03 14:51:52 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-04-03 14:51:52 +0000 |
commit | 141a21da29216a43eb067ef0fcb9c7d914d45bdc (patch) | |
tree | 0450a0d679dd04412427b452cd8acfcaa8225d64 /build | |
parent | b2d7dfd0ab28846748fe2f903ee567e7705623da (diff) |
Ocamlbuild: improvements suggested by N. Pouillard
* Import of Coq_config via myocamlbuild_config.ml, instead of my get_env
* As a consequence, we enrich this Coq_config with stuff that was
only in config/Makefile
* replace the big ugly find by some dependencies against source files
* by the way: build csdpcert, with the right aliases.
I've tried to escape things properly for windows in ./configure,
but this isn't fully tested yet.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12046 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'build')
-rwxr-xr-x | build | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,14 +3,20 @@ FLAGS= OCAMLBUILD=ocamlbuild +check_config() { + [ -f config/coq_config.ml ] || (echo "please run ./configure first"; exit 1) + [ -L myocamlbuild_config.ml ] || ln -sf config/coq_config.ml myocamlbuild_config.ml +} + ocb() { + check_config $OCAMLBUILD $FLAGS $* } rule() { case $1 in - clean) ocb -clean && rm -rf bin/*;; + clean) ocb -clean && rm -rf bin/* && rm -f myocamlbuild_config.ml;; all) ocb coq.otarget;; *) ocb $1;; esac; |