slackbuilds/Makefile.am
Ben Walton 6d71fb57ae Add --with-site-start support to configure
The autoconf/automake files now honour --with-site-start to allow
selection of the directory where automatically sourced elisp files are
stored.  The original default is retained.

This switch makes support of non-debian systems easier.  RHEL5, for
example, places these files in /usr/emacs/site-lisp/site-start.d/.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
2010-03-24 10:14:22 +00:00

24 lines
662 B
Makefile

lispdir = $(datadir)/emacs/site-lisp
sitestartdir = @SITESTART@
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)