# HG changeset patch # User Oleksandr Gavenko # Date 1609542703 -7200 # Node ID 1d87a245ab555935d87fdf1f50c42ac978e92676 # Parent 7f70095fbf32dd43ab339c0cdcfa6eb1fcbaf7cd Do not byte compile .emacs-my during installation. Compilation code moved to separate target useful warnings are reported during compilation. diff -r 7f70095fbf32 -r 1d87a245ab55 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.