Add documentation file generation code to Makefile

* Makefile (info, dvi, html, pdf, eat.info, eat.dvi, eat.html)
(eat.pdf): New targets.
* Makefile (all): New dependency "info."
* Makefile (.PHONY): Add "info", "dvi", "html" and "pdf."
This commit is contained in:
Akib Azmain Turja 2022-11-24 21:05:30 +06:00
parent ed4d4ea6de
commit ae4322fb45
No known key found for this signature in database
GPG key ID: 5535FCF54D88616B

View file

@ -19,8 +19,21 @@
EMACS ?= emacs
TIC ?= tic
TEXI2INFO ?= texi2any
TEXI2DVI ?= texi2dvi
TEXI2HTML ?= texi2any --no-split --html
TEXI2PDF ?= texi2pdf
TEXI2PS ?= texi2any --ps
all: eat.elc terminfo check changelog
all: eat.elc terminfo info check changelog
info: eat.info
dvi: eat.dvi
html: eat.html
pdf: eat.pdf
terminfo: e/eat-mono e/eat-color eat-256color e/eat-truecolor
@ -31,10 +44,22 @@ check: eat.el
changelog:
./make-changelog
.PHONY: all terminfo check changelog
.PHONY: all terminfo info dvi html pdf check changelog
eat.elc: eat.el
$(EMACS) -batch --eval '(byte-compile-file "eat.el")'
e/eat-mono e/eat-color eat-256color e/eat-truecolor: eat.ti
env TERMINFO=. $(TIC) -x eat.ti
eat.info: eat.texi gpl.texi fdl.texi
$(TEXI2INFO) eat.texi
eat.dvi: eat.texi gpl.texi fdl.texi texinfo.tex
$(TEXI2DVI) eat.texi
eat.html: eat.texi gpl.texi fdl.texi
$(TEXI2HTML) eat.texi
eat.pdf: eat.texi gpl.texi fdl.texi texinfo.tex
$(TEXI2PDF) eat.texi