Files
Basil L. Contovounesios dca021ea1e Tidy up Makefile
* Makefile (PACKAGE): Remove variable.
(%.elc, emacs-Q): Use shorter Emacs flags.
(all, lisp): Add missing .PHONY targets.
2025-03-14 18:59:51 +01:00

33 lines
522 B
Makefile

EMACS ?= emacs
RM ?= rm -f
els := hackernews.el
elcs := $(els:.el=.elc)
.PHONY: all
all: lisp
.PHONY: help
help:
$(info Available targets)
$(info )
$(info [all] Same as 'lisp' (default))
$(info clean Clean the build directory)
$(info emacs-Q Launch emacs -Q with Hackernews loaded)
$(info lisp Byte-compile Elisp sources)
@:
.PHONY: emacs-Q
emacs-Q:
$(EMACS) -Q -l $(els)
.PHONY: lisp
lisp: $(elcs)
.PHONY: clean
clean:
$(RM) $(elcs)
%.elc: %.el
$(EMACS) -Q -batch -f batch-byte-compile $<