2010-08-29 00:07:00 +02:00
|
|
|
VERSION=0.8.2
|
2010-08-29 00:52:09 +02:00
|
|
|
PREFIX=/usr
|
2010-08-29 00:07:00 +02:00
|
|
|
|
|
|
|
build:
|
2010-08-29 00:18:06 +02:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ < magit-pkg.el.in > magit-pkg.el
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ < magit.spec.in > magit.spec
|
2010-08-29 00:07:00 +02:00
|
|
|
emacs --batch --eval '(byte-compile-file "magit.el")'
|
2010-08-29 00:18:06 +02:00
|
|
|
makeinfo -I . -o magit.info magit.texi
|
2010-08-29 00:07:00 +02:00
|
|
|
|
2010-08-29 00:52:09 +02:00
|
|
|
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
|
|
|
|
|
2010-08-29 00:07:00 +02:00
|
|
|
clean:
|
2010-08-29 00:20:08 +02:00
|
|
|
rm -f magit-pkg.el magit.spec magit.elc magit.info
|