Do not byte compile .emacs-my during installation. Compilation code moved to separate target useful warnings are reported during compilation.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 02 Jan 2021 01:11:43 +0200
changeset 1668 1d87a245ab55
parent 1667 7f70095fbf32
child 1669 33d096a97345
Do not byte compile .emacs-my during installation. Compilation code moved to separate target useful warnings are reported during compilation.
Makefile
--- a/Makefile	Sat Jan 02 00:45:33 2021 +0200
+++ b/Makefile	Sat Jan 02 01:11:43 2021 +0200
@@ -151,13 +151,10 @@
 	mkdir -p $(emacsdir)/server $(HOME)/.gnus/scores
 	install -m 0644 -t $(HOME)/.gnus/scores all.SCORE
 	$(SHELL) .emacs-autogen.sh $(emacsdir)/.emacs-autogen
+	cp -r srecode/ $(HOME)/.emacs.d/
 	\
 install -m 0644 -t $(mylispdir) $(EL_FILES); \
 $(EMACS) --batch -Q --eval='(progn (setq generated-autoload-file "$(mylispdir)/loaddefs.el") (update-directory-autoloads "$(mylispdir)"))'
-	\
-$(EMACS) --batch --load "$(curdir)/.emacs-defs" -f 'my-load.add-my-loadpaths' --load "$(emacsdir)/.emacs-pre" \
-  --eval='(byte-compile-file "$(emacsdir)/.emacs-my")' --eval='(byte-force-recompile "$(mylispdir)")'
-	cp -r srecode/ $(HOME)/.emacs.d/
 
 .PHONY: uninstall
 uninstall:
@@ -173,14 +170,19 @@
 # Check targets.
 
 .PHONY: check
-check: check-byte-compile
+check: check-byte-compile-modes check-byte-compile-dot-emacs
 
-.PHONY: check-byte-compile
-check-byte-compile:
+.PHONY: check-byte-compile-modes
+check-byte-compile-modes:
 	\
 $(EMACS) -f package-initialize --eval '(push "mylisp" load-path)'  --batch -f batch-byte-compile $(EL_FILES) || :
 	rm -f $(ELC_FILES)
 
+.PHONY: check-byte-compile-dot-emacs
+check-byte-compile-dot-emacs:
+	$(EMACS) --batch --load "$(curdir)/.emacs-defs" -f 'my-load.add-my-loadpaths' --load "$(emacsdir)/.emacs-pre" --eval='(byte-compile-file ".emacs-my")'
+	rm -f .emacs-my.elc
+
 ################################################################
 # Documentation targets.