aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-09 17:42:50 +0300
committerCem Keylan <cem@ckyln.com>2020-09-09 17:42:50 +0300
commitdbbeb322741f826335dd7f0a724d88e1ffe261cc (patch)
treea5619e159a4ad57aa9a9785f31f50839d4a505af /Makefile
parent8b98d178edefd2981e06e72ead837a3c290b4b17 (diff)
downloaddocs-dbbeb322741f826335dd7f0a724d88e1ffe261cc.tar.gz
docs: switch to texinfo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
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