summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBob Weiner <rsw@gnu.org>2016-07-22 10:07:23 -0400
committerBob Weiner <rsw@gnu.org>2016-07-22 10:07:23 -0400
commit1a85fe88c5da812ed67647684dde1d899978837b (patch)
tree190d48de3192df3aa9bdb7d4a511b0ac0708f8ae /Makefile
parent90026c9903b810b43a50d406c0fc48563bf80d97 (diff)
* hyperbole.el (hyperbole-koutliner group): Moved definition to ensure comes after
hversion is loaded. * Makefile (pkg): Updated to build kotl/kotl-autoloads.el file because the Emacs Lisp Package Manager (ELPA) does not yet handle generation of autoloads for package subdirectories.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 49c33f2..966766d 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ HYPB_VERSION = 6.0.1
# Emacs executable used to byte-compile .el files into .elc's.
# Possibilities include: emacs, infodock, xemacs, etc.
-EMACS = emacs
+EMACS = \emacs
# Site-specific Emacs Lisp libraries to load before byte-compiling any files
# from this package. Typically the only reason to set this is to get Emacs
@@ -124,7 +124,7 @@ PRELOADS = $(SITE_PRELOADS) -l ./hload-path.el -l ./hversion.el -l ./hyperbole.e
# Compile in batch mode. Under Emacs and XEmacs, load
# site-lisp/site-start.el, which may set load-path.
-BATCHFLAGS = -batch -nw -Q
+BATCHFLAGS = -batch -Q
# Directories other than the current directory in which to find files.
# This doesn't seem to work in all versions of make, so we also add kotl/
@@ -262,8 +262,9 @@ $(pkg_dir)/hyperbole-$(HYPB_VERSION).tar: $(HYPERBOLE_FILES)
$(RM) -r $(pkg_hyperbole)
cd .. && COPYFILE_DISABLE=1 $(TAR) -clf $(pkg_dir)/h.tar hyperbole-$(HYPB_VERSION)
cd $(pkg_dir) && COPYFILE_DISABLE=1 $(TAR) xf h.tar && cd $(pkg_hyperbole) && $(MAKE) packageclean
+ cd $(pkg_hyperbole) && $(EMACS) $(BATCHFLAGS) -eval '(progn (let ((generated-autoload-file (expand-file-name "kotl/kotl-autoloads.el"))) (update-directory-autoloads (expand-file-name "kotl/"))))' && \
cd $(pkg_dir) && $(RM) h.tar; \
- COPYFILE_DISABLE=1 $(TAR) -clf $(pkg_dir)/hyperbole-$(HYPB_VERSION).tar hyperbole-$(HYPB_VERSION)
+ COPYFILE_DISABLE=1 $(TAR) -clf $(pkg_dir)/hyperbole-$(HYPB_VERSION).tar hyperbole-$(HYPB_VERSION) && \
$(INSTALL) HY-NEWS HY-README HY-WHY.kotl $(pkg_dir)/; chmod 644 $(pkg_dir)/*.tar
pkgclean: packageclean