Provide simple Makefile so that auto* is not necessary.

This commit is contained in:
Timo Juhani Lindfors 2010-08-29 01:07:00 +03:00
parent 5204bfa6af
commit efc97aac14
2 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,5 +1,4 @@
/INSTALL
/Makefile
/Makefile.in
/aclocal.m4
/build-stamp

18
Makefile Normal file
View file

@ -0,0 +1,18 @@
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
build:
sed s/@VERSION@/$VERSION/ < magit-pkg.el.in > magit-pkg.el
sed s/@VERSION@/$VERSION/ < magit.spec.in > magit.spec
emacs --batch --eval '(byte-compile-file "magit.el")'
clean:
rm -f magit-pkg.el magit.spec