slackbuilds/Makefile.am
Marius Vollmer 417dd46093 Elpanized.
From Tom Tromey.  Thanks!

* Makefile.am (elpa): New target to create elpa tarball.
* magit-pkg.el.in: New.
* configure.ac: Create magit-pkg.el from it.
* magit.el: Added autoload for magit-status.
2009-03-09 22:15:07 +02:00

24 lines
683 B
Makefile

lispdir = $(datadir)/emacs/site-lisp
sitestartdir = $(sysconfdir)/emacs/site-start.d
lisp_DATA = magit.el magit.elc
sitestart_DATA = 50magit.el
info_TEXINFOS = magit.texi
CLEANFILES = magit.elc
EXTRA_DIST = magit.el 50magit.el
%.elc: %.el
@if [ $(builddir) != $(srcdir) ]; then ln $(srcdir)/$*.el .; fi
emacs --batch --eval '(byte-compile-file "$*.el")'
@if [ $(builddir) != $(srcdir) ]; then rm -f $*.el; fi
elpa: magit-pkg.el info
-@rm -rf magit-$(VERSION)
mkdir magit-$(VERSION)
cp magit.el magit-pkg.el magit.info magit-$(VERSION)
(cd magit-$(VERSION); ginstall-info --dir-file=dir magit.info)
tar cf magit-$(VERSION).tar magit-$(VERSION)
@rm -rf magit-$(VERSION)