* Makefile: Downcase internal definition names.

master
Basil L. Contovounesios 5 years ago
parent 3bd52a45aa
commit 51eb124ba9
No known key found for this signature in database
GPG Key ID: 205AB54A5D5D8CFF
  1. 34
      Makefile

@ -18,18 +18,18 @@
# Variables. # Variables.
EMACS ?= emacs EMACS ?= emacs
BATCH := $(EMACS) -Q -batch -L . batch := $(EMACS) -Q -batch -L .
ELS := dash.el dev/dash-defs.el els := dash.el dev/dash-defs.el
ELCS := $(addsuffix c,$(ELS)) elcs := $(addsuffix c,$(els))
DOCS := README.md dash.texi docs := README.md dash.texi
TMPLS := readme-template.md dash-template.texi $(wildcard doc/*.texi) tmpls := readme-template.md dash-template.texi $(wildcard doc/*.texi)
# Targets. # Targets.
lisp: $(ELCS) lisp: $(elcs)
.PHONY: lisp .PHONY: lisp
docs: $(DOCS) docs: $(docs)
.PHONY: docs .PHONY: docs
force-docs: maintainer-clean docs force-docs: maintainer-clean docs
@ -40,9 +40,9 @@ force-docs: maintainer-clean docs
# defaults to selecting all tests. Note that in batch mode, a nil # defaults to selecting all tests. Note that in batch mode, a nil
# selector is the same as t. # selector is the same as t.
check: ERT_SELECTOR ?= t check: ERT_SELECTOR ?= t
check: RUN := '(ert-run-tests-batch-and-exit (quote $(ERT_SELECTOR)))' check: run := '(ert-run-tests-batch-and-exit (quote $(ERT_SELECTOR)))'
check: lisp check: lisp
EMACS_TEST_VERBOSE= $(BATCH) -l dev/examples.el -eval $(RUN) EMACS_TEST_VERBOSE= $(batch) -l dev/examples.el -eval $(run)
.PHONY: check .PHONY: check
all: lisp docs check all: lisp docs check
@ -52,21 +52,21 @@ force-all: maintainer-clean lisp docs check
.PHONY: force-all .PHONY: force-all
clean: clean:
$(RM) $(ELCS) $(RM) $(elcs)
.PHONY: clean .PHONY: clean
maintainer-clean: VER := 26 maintainer-clean: ver := 26
maintainer-clean: MSG := Doc regeneration requires $(VER)+ maintainer-clean: msg := Doc regeneration requires $(ver)+
maintainer-clean: clean maintainer-clean: clean
$(BATCH) -eval '(if (< emacs-major-version $(VER)) (error "$(MSG)"))' $(batch) -eval '(if (< emacs-major-version $(ver)) (error "$(msg)"))'
$(RM) $(DOCS) $(RM) $(docs)
.PHONY: maintainer-clean .PHONY: maintainer-clean
# Files. # Files.
%.elc: WERROR := '(setq byte-compile-error-on-warn t)' %.elc: WERROR := '(setq byte-compile-error-on-warn t)'
%.elc: %.el %.elc: %.el
$(BATCH) -eval $(WERROR) -f batch-byte-compile $< $(batch) -eval $(WERROR) -f batch-byte-compile $<
$(DOCS) &: dev/examples.el $(ELCS) $(TMPLS) $(docs) &: dev/examples.el $(elcs) $(tmpls)
$(BATCH) -l $< -f dash-make-docs $(batch) -l $< -f dash-make-docs

Loading…
Cancel
Save