From efc97aac141cd39175277be924adbca307ae6343 Mon Sep 17 00:00:00 2001 From: Timo Juhani Lindfors Date: Sun, 29 Aug 2010 01:07:00 +0300 Subject: [PATCH] Provide simple Makefile so that auto* is not necessary. --- .gitignore | 1 - Makefile | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index acb2c788..49cdcf04 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ /INSTALL -/Makefile /Makefile.in /aclocal.m4 /build-stamp diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..e3ca29c6 --- /dev/null +++ b/Makefile @@ -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