emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] externals/caml 8ef19e2 002/197: Makefile d'installation


From: Stefan Monnier
Subject: [nongnu] externals/caml 8ef19e2 002/197: Makefile d'installation
Date: Sat, 21 Nov 2020 01:19:26 -0500 (EST)

branch: externals/caml
commit 8ef19e2c794014c3339b349e922e3e289a3e0ca7
Author: Xavier Leroy <xavier.leroy@inria.fr>
Commit: Xavier Leroy <xavier.leroy@inria.fr>

    Makefile d'installation
    
    
    git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1287 
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
 Makefile | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2c4d8c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+# Files to install
+FILES=caml-font.el caml-hilit.el caml.el camldebug.el inf-caml.el
+
+# Where to install. If empty, automatically determined.
+EMACSDIR=
+
+# Name of Emacs executable
+EMACS=emacs
+
+# Command for byte-compiling the files
+COMPILECMD=(progn \
+              (setq load-path (cons "." load-path)) \
+              (byte-compile-file "caml.el") \
+              (byte-compile-file "inf-caml.el") \
+              (byte-compile-file "camldebug.el"))
+
+install:
+       @if test "$(EMACSDIR)" = ""; then \
+          dir=`($(EMACS) --batch --eval "(mapcar 'print load-path)") \
+                2>/dev/null | \
+                sed -n -e '/\/site-lisp/s/"//gp'`; \
+          if test "$$dir" = ""; then \
+            echo "Cannot determine Emacs site-lisp directory"; \
+            exit 2; \
+          fi; \
+          $(MAKE) EMACSDIR="$$dir" simple-install; \
+        else \
+          $(MAKE) simple-install; \
+        fi
+
+simple-install:
+       @echo "Installing in $(EMACSDIR)..."
+       cp $(FILES) $(EMACSDIR)
+       cd $(EMACSDIR); $(EMACS) --batch --eval '$(COMPILECMD)'
+
+clean:
+       rm -f *~ #*#



reply via email to

[Prev in Thread] Current Thread [Next in Thread]