Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make 50magit.el (the file with the autoloads) an auto-generated file.

  • Loading branch information...
commit 897166a71a47a3dac8c75e05038098cb7c0d2531 1 parent e5daa79
@pjweisberg pjweisberg authored
Showing with 7 additions and 6 deletions.
  1. +1 −0  .gitignore
  2. +0 −3  50magit.el
  3. +6 −3 Makefile
View
1  .gitignore
@@ -34,3 +34,4 @@
/magit.ps
/magit-pkg.el
magit.spec
+50magit.el
View
3  50magit.el
@@ -1,3 +0,0 @@
-;;; Autoloads for magit
-
-(autoload 'magit-status "magit" nil t)
View
9 Makefile
@@ -6,7 +6,7 @@ ELS=magit.el magit-svn.el magit-topgit.el magit-stgit.el magit-key-mode.el magit
ELS_CONTRIB=contrib/magit-simple-keys.el contrib/magit-classic-theme.el
ELCS=$(ELS:.el=.elc)
ELCS_CONTRIB=$(ELS_CONTRIB:.el=.elc)
-DIST_FILES=$(ELS) Makefile magit.texi magit.info README.md magit.spec.in magit-pkg.el.in 50magit.el
+DIST_FILES=$(ELS) Makefile magit.texi magit.info README.md magit.spec.in magit-pkg.el.in
DIST_FILES_CONTRIB=$(ELS_CONTRIB) contrib/magit
ELPA_FILES=$(ELS) magit.info magit-pkg.el
@@ -20,7 +20,7 @@ BATCH=$(EMACS) -batch -q -no-site-file -eval \
all: core docs contrib
-core: $(ELCS) magit.spec magit-pkg.el
+core: $(ELCS) magit.spec magit-pkg.el 50magit.el
docs: magit.info
@@ -32,6 +32,9 @@ magit.spec: magit.spec.in
magit-pkg.el: magit-pkg.el.in
sed -e s/@VERSION@/$(VERSION)/ < $< > $@
+50magit.el: $(ELS)
+ $(BATCH) --eval "(let ((generated-autoload-file \"$(PWD)/50magit.el\") (make-backup-files nil)) (update-directory-autoloads \".\"))"
+
magit.elc: magit.el
sed -e "s/@GIT_DEV_VERSION@/$(VERSION)/" < magit.el > magit.tmp.el #NO_DIST
$(BATCH) --eval '(byte-compile-file "magit.tmp.el")' #NO_DIST
@@ -88,4 +91,4 @@ install_all: install install_contrib
clean:
rm -f magit.info #NO_DIST
- rm -fr magit-pkg.el magit.spec $(ELCS) $(ELCS_CONTRIB) *.tar.gz magit-$(VERSION)
+ rm -fr magit-pkg.el magit.spec 50magit.el $(ELCS) $(ELCS_CONTRIB) *.tar.gz magit-$(VERSION)
Please sign in to comment.
Something went wrong with that request. Please try again.