summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorXavier Clerc <xavier.clerc@inria.fr>2011-09-07 14:28:24 +0000
committerXavier Clerc <xavier.clerc@inria.fr>2011-09-07 14:28:24 +0000
commit6b6e39a3f3ee578305b9e77ec63db93736fef3b4 (patch)
treebebddabe2be555b21525194af5046c2085574903 /tools
parentb61ac6c57573db88861e3ce87a75d53784cde3c1 (diff)
downloadocaml-6b6e39a3f3ee578305b9e77ec63db93736fef3b4.tar.gz
PR#5331: ocamlmktop is not always a shell script
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11184 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile6
-rw-r--r--tools/Makefile.nt6
-rw-r--r--tools/Makefile.shared8
3 files changed, 12 insertions, 8 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 754af2a046..da87fa99e5 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -19,3 +19,9 @@ include Makefile.shared
ocamlmktop: ocamlmktop.tpl ../config/Makefile
sed -e 's|%%BINDIR%%|$(BINDIR)|' ocamlmktop.tpl > ocamlmktop
chmod +x ocamlmktop
+
+install::
+ cp ocamlmktop $(BINDIR)
+
+clean::
+ rm -f ocamlmktop
diff --git a/tools/Makefile.nt b/tools/Makefile.nt
index 7331ed06eb..b22e35d280 100644
--- a/tools/Makefile.nt
+++ b/tools/Makefile.nt
@@ -21,3 +21,9 @@ OCAMLMKTOP_IMPORTS=misc.cmo config.cmo clflags.cmo ccomp.cmo
ocamlmktop: $(OCAMLMKTOP)
$(CAMLC) $(LINKFLAGS) -o ocamlmktop $(OCAMLMKTOP_IMPORTS) $(OCAMLMKTOP)
+
+install::
+ cp ocamlmktop $(BINDIR)/ocamlmktop$(EXE)
+
+clean::
+ rm -f ocamlmktop$(EXE)
diff --git a/tools/Makefile.shared b/tools/Makefile.shared
index 9c23b44678..ee3fa28315 100644
--- a/tools/Makefile.shared
+++ b/tools/Makefile.shared
@@ -114,14 +114,6 @@ beforedepend:: ocamlmklib.ml
clean::
rm -f ocamlmklib.ml
-# To make custom toplevels (see Makefile/Makefile.nt)
-
-install::
- cp ocamlmktop $(BINDIR)/ # no $(EXE) here, ocamlmktop is a script
-
-clean::
- rm -f ocamlmktop
-
# Converter olabl/ocaml 2.99 to ocaml 3