Call build if no arguments are given to Makefile. Honor PREFIX.
This commit is contained in:
parent
4db9d5b6c6
commit
fe32860471
1 changed files with 10 additions and 9 deletions
19
Makefile
19
Makefile
|
@ -1,13 +1,5 @@
|
|||
VERSION=0.8.2
|
||||
|
||||
install: build
|
||||
mkdir -p $(DESTDIR)/share/emacs/site-lisp
|
||||
install -m 644 magit.el magit.elc $(DESTDIR)/share/emacs/site-lisp
|
||||
mkdir -p $(DESTDIR)/share/info
|
||||
install -m 644 magit.info $(DESTDIR)/share/info
|
||||
install-info --info-dir=$(DESTDIR)/share/info $(DESTDIR)/share/info/magit.info
|
||||
mkdir -p $(DESTDIR)/etc/emacs/site-start.d
|
||||
install -m 644 50magit.el $(DESTDIR)/etc/emacs/site-start.d/50magit.el
|
||||
PREFIX=/usr
|
||||
|
||||
build:
|
||||
sed -e s/@VERSION@/$(VERSION)/ < magit-pkg.el.in > magit-pkg.el
|
||||
|
@ -15,5 +7,14 @@ build:
|
|||
emacs --batch --eval '(byte-compile-file "magit.el")'
|
||||
makeinfo -I . -o magit.info magit.texi
|
||||
|
||||
install: build
|
||||
mkdir -p $(DESTDIR)/$(PREFIX)/share/emacs/site-lisp
|
||||
install -m 644 magit.el magit.elc $(DESTDIR)/$(PREFIX)/share/emacs/site-lisp
|
||||
mkdir -p $(DESTDIR)/$(PREFIX)/share/info
|
||||
install -m 644 magit.info $(DESTDIR)/$(PREFIX)/share/info
|
||||
install-info --info-dir=$(DESTDIR)/$(PREFIX)/share/info $(DESTDIR)/$(PREFIX)/share/info/magit.info
|
||||
mkdir -p $(DESTDIR)/etc/emacs/site-start.d
|
||||
install -m 644 50magit.el $(DESTDIR)/etc/emacs/site-start.d/50magit.el
|
||||
|
||||
clean:
|
||||
rm -f magit-pkg.el magit.spec magit.elc magit.info
|
||||
|
|
Loading…
Reference in a new issue