branch: externals/caml
commit f751b4c9a08db9448f8f05a721b590c2b157fe77
Author: Damien Doligez <damien.doligez-inria.fr>
Commit: Damien Doligez <damien.doligez-inria.fr>
NOCOMPILE pour installer sans compiler (suggestion de Sven Luther)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5814
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 8e97b6a..9dd9b1e 100644
--- a/Makefile
+++ b/Makefile
@@ -40,11 +40,17 @@ install:
$(MAKE) simple-install; \
fi
+# install the .el files, but do not compile them.
+install-el:
+ $(MAKE) NOCOMPILE=true install
+
simple-install:
@echo "Installing in $(EMACSDIR)..."
if test -d $(EMACSDIR); then : ; else mkdir -p $(EMACSDIR); fi
cp $(FILES) $(EMACSDIR)
- cd $(EMACSDIR); $(EMACS) --batch --eval '$(COMPILECMD)'
+ if [ -z "$(NOCOMPILE)" ]; then \
+ cd $(EMACSDIR); $(EMACS) --batch --eval '$(COMPILECMD)'; \
+ fi
ocamltags: ocamltags.in
sed -e 's:@EMACS@:$(EMACS):' ocamltags.in >ocamltags