# Copyright 2007-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 or later PN = ebuild-mode PV = $(shell sed '/^;.*[Vv]ersion/!d;s/[^0-9.]*\([^ \t]*\).*/\1/;q' \ ebuild-mode.el) P = $(PN)-$(PV) 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 EMACS = emacs EMACSFLAGS = -batch -q --no-site-file .PHONY: all keywords dist clean all: $(ELCS) $(INFOFILES) %.elc: %.el $(EMACS) $(EMACSFLAGS) -eval "(add-to-list 'load-path nil)" \ -f batch-byte-compile $< %.info: %.texi makeinfo $< keywords: ./keyword-generation.sh dist: $(DISTFILES) tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^ tar -tJvf $(P).tar.xz clean: -rm -f *~ *.tmp *.gz *.bz2 *.xz *.elc *.info