ffs

Form feed-separated plain text presentations with Emacs

git clone https://www.shemshak.org/~amin/ffs


main/tree/Makefile (-rw-r--r--, 1.4 KiB, raw)

 1 # Makefile --- for building the ffs manual
 2 
 3 # Copyright (c) 2026 Free Software Foundation, Inc.
 4 #
 5 # This program is free software; you can redistribute it and/or modify
 6 # it under the terms of the GNU General Public License as published by
 7 # the Free Software Foundation, either version 3 of the License, or
 8 # (at your option) any later version.
 9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
17 
18 ### Commentary:
19 
20 # make all/doc  Generate various formats of the ffs manual from Org
21 # make clean    Delete generated ffs.texi, ffs.info, ffs.html files
22 
23 ### Code:
24 
25 .POSIX:
26 .PHONY: all doc clean
27 .SUFFIXES: .texi .info .html
28 
29 CSS_REF = ../bandali.css?v=20261022
30 
31 EMACS = emacs
32 MAKEINFO = makeinfo
33 MAKEINFO_html_opts = --html --no-split --css-ref="$(CSS_REF)" $\
34   --init-file="ffsinit.pm"
35 DOC = ffs.info ffs.html
36 
37 all: doc
38 doc: $(DOC)
39 clean:
40 	$(RM) $(DOC)
41 
42 .texi.info:
43 	@echo "Generating $@ from $<"
44 	$(MAKEINFO) $<
45 
46 .texi.html:
47 	@echo "Generating $@ from $<"
48 	$(MAKEINFO) $(MAKEINFO_html_opts) $<
49 
50 ffs.info: ffs.texi ffsinit.pm
51 ffs.html: ffs.texi ffsinit.pm