Commit Graph

6946 Commits (c4d8f39fc28a6ef6909e07bb6f7bf76069f8f96e)

Author SHA1 Message Date
Nicolas Pouillard 9966c05ede [ocamlbuild] Use the log file even if we are just making a plugin.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8613 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:58:39 +00:00
Nicolas Pouillard aeaed191ed [ocamlbuild] Don't try to remove link to build when the feature is off.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8612 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:58:20 +00:00
Nicolas Pouillard e49b8c08d8 [camlp4] Add an example about the "debug" syntax extension.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8611 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:56:01 +00:00
Nicolas Pouillard a4154feec7 [ocamlbuild] Make the log file live in the build directory (PR#4313).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8610 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:53:38 +00:00
Nicolas Pouillard a4618ecfbb [ocamlbuild] [test] Opening Ocamlbuild_pack is useless.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8609 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:51:48 +00:00
Nicolas Pouillard c938a1964d [ocamlbuild] [test] Wrap decls in a dispatch call.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8608 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:51:13 +00:00
Nicolas Pouillard 5d85b57cb1 [ocamlbuild] Reflect in rules that cmi cannot go in libraries.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8607 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:50:29 +00:00
Nicolas Pouillard b599f996d8 [ocamlbuild] whitespace cleanup (by Benoit Montagu <benoit.montagu@inria.fr>)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8606 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:49:49 +00:00
Nicolas Pouillard e96c716b68 [ocamlbuild] Export constructors names for command directly in Ocamlbuild_plugin.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8605 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:49:06 +00:00
Nicolas Pouillard fcdb3bcf7d [ocamlbuild] add flag declaration for ocamllex -ml (by Benoit Montagu <benoit.montagu@inria.fr>)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8604 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:48:22 +00:00
Nicolas Pouillard a353e7b885 [ocamlbuild] add flag declaration for menhir --explain (by Benoit Montagu <benoit.montagu@inria.fr>)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8603 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:47:07 +00:00
Nicolas Pouillard af6ff1b537 [ocamlbuild] Handle include directories in the modular menhir support.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8602 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:46:18 +00:00
Nicolas Pouillard 60858a2c2b [build sys] Install ocamlbuild executor and unix_plugin.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8601 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:45:46 +00:00
Nicolas Pouillard 78baddcc34 [ocamlbuild] Extract executor as ocamlbuild_excutor and my_unix_with_unix as ocamlbuild_unix_plugin.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8600 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:34:22 +00:00
Nicolas Pouillard 4be12009bf [ocamlbuild] Give Main.Exit_codes its own file.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8599 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:31:22 +00:00
Nicolas Pouillard ac55a416ad [ocamlbuild] sanitize.sh job is done.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8598 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:29:46 +00:00
Nicolas Pouillard 6076c90b4c [ocamlbuild] sanitize.sh is made in build dir and deleted before hygiene.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8597 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:29:32 +00:00
Damien Doligez 0fdcfd1bc2 update doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8596 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 18:06:22 +00:00
Nicolas Pouillard 4e9165382c [build sys] Add ocamlbuild stamps for some rules.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8595 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 16:59:21 +00:00
Nicolas Pouillard 2b906d0efa [ocamlbuild] Fix a bug in stamp (add stamp in prods list).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8594 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 16:55:05 +00:00
Nicolas Pouillard ed05b821de [build sys] regen boot/myocamlbuild.boot
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8593 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 16:50:10 +00:00
Nicolas Pouillard 115012e8d3 [build] Remove a nasty spurious conflict mark.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8591 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-22 16:01:08 +00:00
Nicolas Pouillard 4d2efe6184 [ocamlbuild] Use stamps for some ocamldoc rules.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8590 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:40:22 +00:00
Nicolas Pouillard 4493037397 [ocamlbuild] [TEST] Update the good-output.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8589 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:39:51 +00:00
Nicolas Pouillard 663fabb895 [ocamlbuild] [FIXED] In the %.itarget->%.otarget rule otarget is now a stamp file.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8588 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:38:38 +00:00
Nicolas Pouillard 1989f91c21 [ocamlbuild] [ADDED] Rules can now have a stamp production.
A stamp production of a rule (like in the rule .mli -> .cmi).
However this file is automatically produced by ocamlbuild and
contains a digest of its dependencies. This allow some kind of
rules that requires PHONY in `make'.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8587 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:34:57 +00:00
Nicolas Pouillard bc7a152e6a [ocamlbuild] Remove touch.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8586 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:33:49 +00:00
Nicolas Pouillard 2396e3b2c3 [build sys] Use ocamlbuild virtual rules.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8585 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:33:13 +00:00
Nicolas Pouillard a095c89e6e [ocamlbuild] [TEST] Remove generated file.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8584 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:32:43 +00:00
Nicolas Pouillard 71aba032c4 [ocamlbuild] [TEST] Add a test for virtual rules.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8583 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:16:47 +00:00
Nicolas Pouillard 9054fd52f1 [ocamlbuild] [FIXED] No longer pass the ocamldep tag to the preproc use pp:dep instead.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8582 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:07:18 +00:00
Nicolas Pouillard 54e5904df4 [ocamlbuild] Remove custom_rule.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8581 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:06:47 +00:00
Nicolas Pouillard 0f77a75787 [ocamlbuild] In Rule, add a proper action data type.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8580 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:06:21 +00:00
Nicolas Pouillard 36a6411983 [ocamlbuild] Make the rule type abstract.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8579 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:06:10 +00:00
Nicolas Pouillard ec99dd13c4 [ocamlbuild] [CHANGED] Merge the rules about ocaml C stubs using %(var: pattern).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8578 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:05:11 +00:00
Nicolas Pouillard f7cde9c445 [ocamlbuild] [TEST] Update the expected output.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8577 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:04:23 +00:00
Nicolas Pouillard 58473aaddd [ocamlbuild] [ADDED] Test and examples of %(var:pattern).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8576 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:03:52 +00:00
Nicolas Pouillard d8b82a7904 [ocamlbuild] [ADDED] Support for setting the recognized language of % in rules %(name: pattern).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8575 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:03:14 +00:00
Nicolas Pouillard a1e70cf818 [ocamlbuild] [CHANGED] Export the globber type definition but not the fast_pattern one of course.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8574 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:02:15 +00:00
Nicolas Pouillard ead23cd811 [ocamlbuild] [ADDED] My_std.String.{implode,explode}.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8573 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:01:42 +00:00
Nicolas Pouillard ace9184e77 [build using ocamlbuild] Regen boot/myocamlbuild.boot.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8572 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 21:00:37 +00:00
Nicolas Pouillard 3f755dc652 [ocamlbuild] [FIXED] No longer use read_file in ppcache.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8571 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 20:56:00 +00:00
Nicolas Pouillard 76c289ce88 [ocamlbuild] [FIXED] Use String.max_string_length instead of a wrong constant.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8570 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 20:54:45 +00:00
Nicolas Pouillard 1526de337e [ocamlbuild] [FIXED] Globbing wildcard '?' cannot match slash (update doc too)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8568 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 20:48:37 +00:00
Nicolas Pouillard 3107465c71 Modular menhir support for ocamlbuild (by Benoit Montagu <benoit.montagu@inria.fr>)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8567 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 20:46:46 +00:00
Nicolas Pouillard 5bc8725446 [ocamlbuild] Better understand and revamp .depends generation and usage.
.depends  file  was  generated  by  an  ugly  rule  that executed the ocamldep
command  instead  of returning it for later execution. Moreover this execution
was  in  order to read the output and store as a side effect. By doing this it
was  more complicated to work with this command. Now the rule just returns the
command  to  execute  as  for  other  rules.  And  that's  clients  that wants
dependencies of a file that trigger the reading of this file.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8566 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 18:32:32 +00:00
Nicolas Pouillard 229bebc621 [ocamlbuild] [ADDED] Add a TODO item.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8565 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 18:22:06 +00:00
Nicolas Pouillard 9f36ea074a [ocamlbuild] [ADDED] A TODO item.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8564 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 18:21:48 +00:00
Nicolas Pouillard 2283930f93 [ocamlbuild] [ADDED] Two TODO items.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 18:21:29 +00:00
Nicolas Pouillard e7c8d8395d [ocamlbuild] Merge 3.10 on trunk for ocamlbuild
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8562 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 18:20:41 +00:00