Commit Graph

155 Commits (4e8b7a4808f928e6dba47a2bb768c83dbd426d2d)

Author SHA1 Message Date
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 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
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 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 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 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
Nicolas Pouillard 1e52ab65d7 [ocamlbuild] [ADDED] Add a clear distinction between resources ("a.byte", "a.ml"...) and resource_patterns ("%.byte", "%.ml"...).
There  is  now an abstract type to ensure that resource_patterns are not mixed
with  resources. Rules are now 'a gen_rules where 'a is the type of production
resources (either a resource or a resource_pattern).


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 16:40:28 +00:00
Nicolas Pouillard f0dc0e240b [ocamlbuild] Update the tests.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8546 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-21 16:38:34 +00:00
Damien Doligez 4167841b16 fusion de la version 3.10.0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8416 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-10-08 14:19:34 +00:00
Nicolas Pouillard 8a8e9657e4 [ocamlbuild] See ChangeLog
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7951 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-03-01 14:40:11 +00:00
Nicolas Pouillard a3797d4d4a [ocamlbuild] Add the -documentation option
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7933 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-26 17:05:30 +00:00
Nicolas Pouillard 58381e7ecc [ocamlbuild] Use Sys.is_directory
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7930 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-26 16:36:33 +00:00
Nicolas Pouillard 0105c80c6a [ocamlbuild] use_lib improvments. See the ChangeLog for more details
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7928 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-26 16:27:45 +00:00
Nicolas Pouillard ba936a66f5 [ocamlbuild] Add the -dont-catch-errors option
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7924 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-26 13:16:22 +00:00
Nicolas Pouillard 7a0e57b525 [ocamlbuild] Minor things. For details see the ChangeLog
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7897 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-22 16:51:39 +00:00
Nicolas Pouillard fefcce073e [ocamlbuild] Use sanitize instead of sterilize. For details see the ChangeLog
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7895 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-22 15:56:23 +00:00
Damien Doligez 519d6f342a ignorer les fichiers generes
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7883 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-17 15:43:29 +00:00
Nicolas Pouillard 77198867bb [ocamlbuild] add a plugin example
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7874 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-16 10:40:25 +00:00
Nicolas Pouillard c60299dc2b [ocamlbuild] ChangeLog
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7873 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-16 10:39:09 +00:00
Nicolas Pouillard 064941eb51 [ocamlbuild] slides...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7872 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-16 10:38:20 +00:00
Nicolas Pouillard cd94bace32 [ocamlbuild] Fix plural options
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7871 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-16 10:35:10 +00:00
Nicolas Pouillard 82a5319709 [ocamlbuild] Keep include dirs uniq for -pack.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7862 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-12 15:34:30 +00:00
Nicolas Pouillard 824dc3994e [ocamlbuild] ocamlmktop, and thread tag in native code (see ChangeLog for more details)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7858 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-12 10:26:08 +00:00
Damien Doligez 324953bf55 clean more
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7847 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-09 13:29:12 +00:00
Nicolas Pouillard 63efea64b4 [ocamlbuild] +
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7843 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-08 16:54:43 +00:00
Nicolas Pouillard 0368536e72 [ocamlbuild] some changes see ocamlbuild/ChangeLog
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7842 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-08 16:53:39 +00:00
Luc Maranget f7980e95e2 +
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7840 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-08 14:41:57 +00:00
Nicolas Pouillard 0444576dd4 Fix ocamlbuild bootstrap
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7834 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-07 15:18:17 +00:00
Nicolas Pouillard 381e325c0f Add the ocamlbuild directory
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7823 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-07 08:59:16 +00:00