From 70a32fc9b0969fc9ee8c5e2ea6077d08ae304dbe Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 24 Dec 2020 13:08:32 +0000 Subject: cpt: add info page to the build system - Made the info page an optional part of the build system, meaning that 'redo' will not attempt to build or install the info page if you don't have 'makeinfo' available on your system. - The info page is installed to the 'info/' directory relative to the $SHAREDIR. It can be overriden by setting the INFODIR variable. FossilOrigin-Name: 4df60a4d7dbaac4948453208251b1210974d931bfcf74b583cd862e9d28fd57c --- docs/default.do | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/default.do b/docs/default.do index a66ed9b..3519aec 100644 --- a/docs/default.do +++ b/docs/default.do @@ -8,6 +8,11 @@ case "$1" in allclean) redo ../clean; rm -f cpt.texi ;; info) redo-ifchange cpt.info cpt.texi cpt.org ;; *.info) + # Don't bother if makeinfo doesn't exist on the system, exit with success. + if ! command -v $MAKEINFO; then + PHONY + exit 0 + fi redo-ifchange "$fn.texi" $MAKEINFO "$fn.texi" -o "$3" ;; -- cgit v1.2.3