diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-06-17 19:52:44 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-06-17 19:52:44 +0200 |
commit | 2fe6feddac70027eabbdf8991b0aac74b886f38f (patch) | |
tree | ca96268028b02fb04910a32775dfb3573b8c30f4 /Makefile | |
parent | Do not modify the buffer when KEYWORDS are unchanged (diff) | |
download | ebuild-mode-2fe6feddac70027eabbdf8991b0aac74b886f38f.tar.gz ebuild-mode-2fe6feddac70027eabbdf8991b0aac74b886f38f.tar.bz2 ebuild-mode-2fe6feddac70027eabbdf8991b0aac74b886f38f.zip |
Update Makefile
* Makefile (ELCS, INFOFILES, EMACS, EMACSFLAGS): New variables.
(.PHONY): Add keywords target.
(all): Build ELCS and INFOFILES by default.
(%.elc, %.info): New rules.
(clean): Add *.elc.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -10,12 +10,21 @@ DISTFILES = ebuild-mode.el ebuild-mode-keywords.el \ devbook-mode.el gentoo-newsitem-mode.el glep-mode.el \ ebuild-mode.texi keyword-generation.sh ChangeLog +ELCS = ebuild-mode.elc devbook-mode.elc gentoo-newsitem-mode.elc glep-mode.elc +INFOFILES = ebuild-mode.info -.PHONY: all dist clean +EMACS = emacs +EMACSFLAGS = -batch -q --no-site-file -all: +.PHONY: all keywords dist clean -ebuild-mode.info: ebuild-mode.texi +all: $(ELCS) $(INFOFILES) + +%.elc: %.el + $(EMACS) $(EMACSFLAGS) -eval "(add-to-list 'load-path nil)" \ + -f batch-byte-compile $< + +%.info: %.texi makeinfo $< keywords: @@ -26,4 +35,4 @@ dist: $(DISTFILES) tar -tJvf $(P).tar.xz clean: - -rm -f *~ *.tmp *.gz *.bz2 *.xz *.info + -rm -f *~ *.tmp *.gz *.bz2 *.xz *.elc *.info |