summaryrefslogtreecommitdiff
path: root/tools/ocamldep.ml
Commit message (Collapse)AuthorAgeFilesLines
* fix PR#5930: ocamldep leaks temporary preprocessing filesGabriel Scherer2013-02-241-3/+10
| | | | | | | Ah, if we had let-try... git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13309 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* #5904: support for -ppx in the toplevel.Alain Frisch2013-01-251-3/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13278 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Reverting "PR#5868: Bytecode dependencies should not appear in output of ↵Wojciech Meyer2013-01-031-5/+3
| | | | | | | | | | | | | | | | | | | | | | | ocamldep" -native flag semantics are currently different to that what the user expects, and what was attempted to be fixed. The semantics of -native are not to completely disable generation of dependencies for bytecode instead make the compilation to native code more efficient. Most of the project are expected to be buildable with both versions of the compiler. So ocamldep is expected to always generate the dependencies in both cases. When the .mli file is absent ocamldep needs to still generate dependencies in bytecode to build the cmi only and to build cmi and cmx for the dependent compilation unit . Because of some make tool pecularities, handling of two different rules that include the same depenency is problematic, so instead when the -native flag is not used the cmo file is used as a proxy to build cmi, when the -native enabled however, the cmx file is used as proxy to build cmi file for the dependencies to avoid recompilation of the dependent .cmo file just to get .cmi file. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13202 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5868: Somewhat a better fix for -native option.Wojciech Meyer2013-01-011-2/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5868: Bytecode dependencies should not appear in output of ocamldep when ↵Wojciech Meyer2013-01-011-1/+1
| | | | | | -native flag is used git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13194 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Enable 'unused stuff' warnings in tools/ and get rid of them.Alain Frisch2012-12-191-1/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13140 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* remove all $Id keywordsDamien Doligez2012-10-151-2/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Make ocamldep ignore toplevel directives in .ml files, as it did beforeDamien Doligez2012-08-101-2/+11
| | | | | | | commit 12769. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12854 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* remove leftover debug code from previous commitDamien Doligez2012-08-091-1/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12853 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* undo commit 12847, it breaks preprocessingDamien Doligez2012-08-091-3/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12852 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Revert one change of commit 12769 that (inadvertently?) breaks ocamlnet 3.5.1Damien Doligez2012-08-091-2/+3
| | | | | | | by triggering a syntax error on toplevel directives inside .ml files. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12847 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Support -absname in ocamldep + update man pages.Alain Frisch2012-08-031-0/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12819 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes from 4.00 branching to 4.00.0 (part 1)Damien Doligez2012-07-261-21/+24
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Add support for -ppx in ocamldep (and reuse preprocessing code in Pparse).Alain Frisch2012-07-241-69/+12
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12769 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Improve ocamldep error handlingFabrice Le Fessant2012-03-091-45/+48
| | | | | | | | | | | In case of syntax error while reading a file, ocamldep used to completely ignore the file. The new behavior is to compute no dependency from the file content, but still print dependencies between implementations and interfaces if needed. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge version 3.12 from 3.12.1 to r12205Damien Doligez2012-03-081-15/+15
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* refactoring the "read n bytes from a channel into a new string" idiomDamien Doligez2012-02-231-2/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12184 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5510: FixWojciech Meyer2012-02-191-4/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12168 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Change "Ocaml" to "OCaml" everywhereDamien Doligez2012-02-131-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12152 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Small fix on the previous commitFabrice Le Fessant2012-01-271-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12092 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Fix PR#5396Fabrice Le Fessant2012-01-271-26/+151
| | | | | | | | | | | Add the following options to ocamldep: -sort: print files sorted according to their dependencies -all: print all dependencies, not only the ones wanted by make -one-line: don't break lines when they become too long git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12089 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* renaming of Objective Caml to OCaml and cleanup of copyright headersDamien Doligez2011-07-271-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes from 3.12.0 to 3.12.1Damien Doligez2011-07-201-9/+38
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11123 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* renaming "Objective Caml" to "OCaml" (first pass)Damien Doligez2011-04-261-9/+9
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11015 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#4857: add -vnum option to all executablesDamien Doligez2010-05-201-0/+7
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10444 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* avoid printing spurious spacesDamien Doligez2010-01-071-6/+6
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9511 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Understanding the notion of standard channel for Format and Scanf.Pierre Weis2009-01-251-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9166 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#4212: print dependency lines even if there are no dependenciesXavier Leroy2008-08-011-15/+12
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8963 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#3036 add options -impl and -intf to ocamldepDamien Doligez2008-01-221-13/+23
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8786 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#3114 make all error messages start with a location and "Error: "Damien Doligez2007-12-041-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8705 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* The command ocamldep was generating dependencies with a spurious ./ before thePierre Weis2007-02-121-1/+2
| | | | | | | | | | | | name of the file when the file was in the current directory. Unfortunately, "./filename" is not always equivalent to "filename": in case of a specific ``filename: '' rule in make files, if a generic rule also matches ``./filename'', then the generic rule is chosen instead of the specific rule. This occurred in the compilation of the Caml compiler and lead to subtle bugs! git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7853 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Do not terminate after a preprocessing errorXavier Leroy2006-09-281-2/+6
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7654 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fusion des changements 3.09.2 -> 3.09.3Damien Doligez2006-09-201-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7619 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ajout option -modules (cf. PR#4047)Xavier Leroy2006-08-311-54/+79
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7575 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Revu traitement de l'option -slash (PR#4050). A tester.Xavier Leroy2006-08-301-6/+14
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7574 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fusion des changements jusqu'a 3.08.3Damien Doligez2005-03-241-3/+30
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6824 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* changements sur les warningsDamien Doligez2004-11-301-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6720 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#3085 ajout option "-version"Damien Doligez2004-11-271-2/+9
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6701 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* suppression support MacOS9Damien Doligez2004-01-161-5/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6074 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* pour reconnaitre "-I +foo"Damien Doligez2003-04-061-0/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5498 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Permettre de placer les sources du module Foo dans Foo.ml aussi bien que ↵Xavier Leroy2003-03-031-19/+37
| | | | | | dans foo.ml git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5417 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* changement des locations, premiere trancheDamien Doligez2002-11-011-3/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5224 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ajout flag -slash pour WindowsXavier Leroy2002-06-071-2/+16
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4902 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Chercher les infos sur le module Foo dans les fichiers Foo.{cmi,cmx} et ↵Xavier Leroy2002-06-071-3/+2
| | | | | | foo.{cmi,cmx} (PR#1177) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4896 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* séparation ocamldep en main et fonctions réutilisables (pour coamldoc)Maxence Guesdon2002-03-181-260/+5
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4540 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fix PR#972Jacques Garrigue2002-03-181-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4539 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* lazy a la TolmachDamien Doligez2002-01-201-0/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4291 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* enrich variant typesJacques Garrigue2001-09-251-1/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3788 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Add option -pp for ocamldepDaniel de Rauglaudre2001-08-041-7/+73
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3613 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Correction d'une erreur sur la gestion des definitions de modulesPierre Weis2001-03-231-8/+6
| | | | | | | toplevel (sur le conseil de Judicael Courant). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3472 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02