slackbuilds/Makefile.am

26 lines
829 B
Text
Raw Normal View History

2008-08-13 05:47:09 +02:00
lispdir = $(datadir)/emacs/site-lisp
sitestartdir = @SITESTART@
2008-08-13 05:47:09 +02:00
2010-08-29 17:42:45 +02:00
lisp_DATA = magit.el magit.elc magit-svn.el magit-svn.elc magit-topgit.el magit-topgit.elc
2008-08-13 05:47:09 +02:00
sitestart_DATA = 50magit.el
info_TEXINFOS = magit.texi
2010-08-29 17:42:45 +02:00
CLEANFILES = magit-*.elc
EXTRA_DIST = magit.el 50magit.el magit.spec magit-svn.el magit-topgit.el
2008-08-13 05:47:09 +02:00
%.elc: %.el
@if [ $(builddir) != $(srcdir) ]; then ln $(srcdir)/$*.el .; fi
2010-08-29 17:42:45 +02:00
emacs --batch --eval "(add-to-list 'load-path \"$(srcdir)\")" \
--eval '(byte-compile-file "$*.el")'
2008-08-13 05:47:09 +02:00
@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)