diff options
| author | Pierre Boutillier | 2014-06-12 15:27:02 +0200 |
|---|---|---|
| committer | Pierre Boutillier | 2014-06-30 09:49:44 +0200 |
| commit | 8e3ef4dbfd00c67af1cc2b83307038a6440584cb (patch) | |
| tree | a2ce2902e4112ae384175c1f71e229039ffe7be5 /tools | |
| parent | a273df3af0e4315fd792efd83b9365320531111d (diff) | |
Coq_makefile: -extra[-phony] correction + doc
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/coq_makefile.ml | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/tools/coq_makefile.ml b/tools/coq_makefile.ml index 5914ea0e27..9aac367b06 100644 --- a/tools/coq_makefile.ml +++ b/tools/coq_makefile.ml @@ -48,18 +48,26 @@ let section s = let usage () = output_string stderr "Usage summary: -coq_makefile [subdirectory] .... [file.v] ... [file.ml[i4]?] ... [file.mllib] - ... [-custom command dependencies file] ... [-I dir] ... [-R physicalpath - logicalpath] ... [VARIABLE = value] ... [-arg opt] ... [-opt|-byte] - [-no-install] [-f file] [-o file] [-h] [--help] +coq_makefile [subdirectory] .... [file.v] ... [file.ml[i4]?] ... + [file.ml{lib,pack}] ... [-extra[-phony] result dependencies command] + ... [-I dir] ... [-R physicalpath logicalpath] ... [VARIABLE = value] + ... [-arg opt] ... [-opt|-byte] [-no-install] [-f file] [-o file] + [-h] [--help] [file.v]: Coq file to be compiled [file.ml[i4]?]: Objective Caml file to be compiled -[file.mllib]: ocamlbuild file that describes a Objective Caml library +[file.ml{lib,pack}]: ocamlbuild file that describes a Objective Caml + library/module [subdirectory] : subdirectory that should be \"made\" and has a Makefile itself to do so. -[-custom command dependencies file]: add target \"file\" with command - \"command\" and dependencies \"dependencies\" +[-extra result dependencies command]: add target \"result\" with command + \"command\" and dependencies \"dependencies\". If \"result\" is not + generic (do not contains a %), \"result\" is built by _make all_ and + deleted by _make clean_. +[-extra-phony result dependencies command]: add a PHONY target \"result\" + with command \"command\" and dependencies \"dependencies\". Note that + _-extra-phony foo bar \"\"_ is a regular way to add the target \"bar\" as + as a dependencies of an already defined target \"foo\". [-I dir]: look for Objective Caml dependencies in \"dir\" [-R physicalpath logicalpath]: look for Coq dependencies resursively starting from \"physicalpath\". The logical path associated to the @@ -642,7 +650,7 @@ let main_targets vfiles (mlifiles,ml4files,mlfiles,mllibfiles,mlpackfiles) other let all_target (vfiles, (_,_,_,_,mlpackfiles as mlfiles), sps, sds) inc = let other_targets = CList.map_filter - (fun (n,_,is_phony,_) -> if is_phony || not (is_genrule n) then Some n else None) + (fun (n,_,is_phony,_) -> if not (is_phony || is_genrule n) then Some n else None) sps @ sds in main_targets vfiles mlfiles other_targets inc; print ".PHONY: "; |
