Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #8 from abique/patch-1

Makefile: various fixes for install rules
  • Loading branch information...
commit af18a012a546f9caac801b99dacd24b4b53db3f7 2 parents 3dc7ab6 + 90df696
@lewang authored
Showing with 7 additions and 9 deletions.
  1. +7 −9 Makefile
View
16 Makefile
@@ -27,29 +27,27 @@ BATCH=$(EMACS) -batch -q -no-site-file -eval \
ELC= $(BATCH) -f batch-byte-compile
# How to copy the lisp files and elc files to their distination.
-CP = cp -p
+CP = install -m 644
##----------------------------------------------------------------------
## BELOW THIS LINE ON YOUR OWN RISK!
##----------------------------------------------------------------------
# The following variables need to be defined by the maintainer
-LISPF = rebox2.el \
+LISPFILES = rebox2.el \
-ELCFILES = $(LISPF:.el=.elc)
+ELCFILES = $(LISPFILES:.el=.elc)
default: $(ELCFILES)
install: install-lisp
install-lisp: $(LISPFILES) $(ELCFILES)
- if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
- $(CP) $(LISPFILES) $(lispdir)
- $(CP) $(ELCFILES) $(lispdir)
-
-clean:
- ${MAKE} cleanelc
+ install -d -m 755 $(DESTDIR)$(lispdir)
+ $(CP) $(LISPFILES) $(DESTDIR)$(lispdir)
+ $(CP) $(ELCFILES) $(DESTDIR)$(lispdir)
+clean: cleanelc
cleanelc:
rm -f $(ELCFILES)
Please sign in to comment.
Something went wrong with that request. Please try again.