From dbbeb322741f826335dd7f0a724d88e1ffe261cc Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 9 Sep 2020 17:42:50 +0300 Subject: docs: switch to texinfo --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7392697 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# This Makefile is meant to generate a dist tarball in order to avoid installing +# texinfo on the target system. +TARBALL=carbs-docs-`date +%Y-%m-%d` +DESTDIR=./docs + +all: + +dist: + mkdir -p ${TARBALL} + makeinfo -o ${TARBALL}/carbslinux.info top.texi + makeinfo --plaintext top.texi > ${TARBALL}/carbslinux.txt + cp extMakefile ${TARBALL}/Makefile + tar -cf ${TARBALL}.tar ${TARBALL} + gzip -9 ${TARBALL}.tar + rm -rf ${TARBALL}.tar ${TARBALL} + +htmldocs: + rm -rf -- ${DESTDIR} + makeinfo --html -o ${DESTDIR} top.texi + +.PHONY: all dist htmldocs -- cgit v1.2.3