aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-02-24 15:25:08 +0000
committerGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-02-24 15:25:08 +0000
commitedca82b2ff6721b69c49533c40aadf10e5987816 (patch)
treed9d05834cb863fed462361b1b3a4dc1152f38e72 /tools
parent013661475d83407a588b72b34cbd95df82ee834a (diff)
on sait se refaire uniquement si option -f
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3697 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tools')
-rw-r--r--tools/coq_makefile.ml412
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/coq_makefile.ml4 b/tools/coq_makefile.ml4
index d42ccd17a..9267145df 100644
--- a/tools/coq_makefile.ml4
+++ b/tools/coq_makefile.ml4
@@ -21,7 +21,7 @@ type target =
let output_channel = ref stdout
let makefile_name = ref "Makefile"
-let make_name = ref "Make"
+let make_name = ref ""
let some_file = ref false
let some_vfile = ref false
@@ -107,10 +107,12 @@ let standard sds =
(fun x -> print "\t(cd "; print x; print " ; $(MAKE) install)\n")
sds;
print "\n";
- printf "%s: %s\n" !makefile_name !make_name;
- printf "\tmv -f %s %s.bak\n" !makefile_name !makefile_name;
- printf "\t$(COQBIN)coq_makefile -f %s -o %s\n" !make_name !makefile_name;
- print "\n";
+ if !make_name <> "" then begin
+ printf "%s: %s\n" !makefile_name !make_name;
+ printf "\tmv -f %s %s.bak\n" !makefile_name !makefile_name;
+ printf "\t$(COQBIN)coq_makefile -f %s -o %s\n" !make_name !makefile_name;
+ print "\n";
+ end;
print "clean:\n";
print "\trm -f *.cmo *.cmi *.cmx *.o *.vo *.vi *.g *~\n";
print "\trm -f all.ps all-gal.ps $(HTMLFILES) $(GHTMLFILES)\n";