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

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

[nongnu] externals/caml f9a4fd4 177/197: makefiles: turn the 'install' c


From: Stefan Monnier
Subject: [nongnu] externals/caml f9a4fd4 177/197: makefiles: turn the 'install' command into a variable
Date: Sat, 21 Nov 2020 01:20:02 -0500 (EST)

branch: externals/caml
commit f9a4fd4f79d483d190edcabd08828b515d718ad1
Author: Gabriel Scherer <gabriel.scherer@gmail.com>
Commit: Gabriel Scherer <gabriel.scherer@gmail.com>

    makefiles: turn the 'install' command into a variable
    
    (Suggestion made by S├ębastien Hinderer during review.)
---
 Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index fd48e8c..c003fa9 100644
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,9 @@ COMPILECMD=(progn \
              (byte-compile-file "caml-font.el") \
              (byte-compile-file "camldebug.el"))
 
-MDATA=u+rw,g+rw,o+r
-MPROG=u+rwx,g+rwx,o+rx
+INSTALL=install
+INSTALL_DATA=$(INSTALL) -m u+rw,g+rw,o+r
+INSTALL_PROG=$(INSTALL) -m u+rwx,g+rwx,o+rx
 
 install:
        @if test "$(EMACSDIR)" = ""; then \
@@ -67,7 +68,7 @@ install-el:
 simple-install:
        @echo "Installing in $(EMACSDIR)..."
        if test -d $(EMACSDIR); then : ; else mkdir -p $(EMACSDIR); fi
-       install -m $(MDATA) $(FILES) $(EMACSDIR)
+       $(INSTALL_DATA) $(FILES) $(EMACSDIR)
        if [ -z "$(NOCOMPILE)" ]; then \
          cd $(EMACSDIR); $(EMACS) --batch --eval '$(COMPILECMD)'; \
        fi
@@ -77,7 +78,7 @@ ocamltags:    ocamltags.in
        chmod a+x ocamltags
 
 install-ocamltags: ocamltags
-       install -m $(MDATA) ocamltags $(SCRIPTDIR)/ocamltags
+       $(INSTALL_DATA) ocamltags $(SCRIPTDIR)/ocamltags
 
 # This is for testing purposes
 compile-only:



reply via email to

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