aboutsummaryrefslogtreecommitdiff
path: root/docs/Makefile
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-02-04 14:30:43 +0000
committermerakor <cem@ckyln.com>2021-02-04 14:30:43 +0000
commit97312778a09decf65030e994e72ce07434ce0f07 (patch)
treeeeb18b94a461a05a6993d98ab9a68eee1152faf9 /docs/Makefile
parent63c4051197cfcad2231de6eb9874055d668f47df (diff)
downloadcpt-97312778a09decf65030e994e72ce07434ce0f07.tar.gz
cpt: switch back to 'make'
FossilOrigin-Name: 048c099fa4155f31725c51c27b09359d7b04f4c2d7e64f2a2b381ab7dea7803d
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 0000000..92b2c76
--- /dev/null
+++ b/docs/Makefile
@@ -0,0 +1,33 @@
+# Carbs Packaging Tools Documentation
+include ../config.mk
+INSTALL_SH = ../tools/install.sh
+
+all: cpt.txt cpt.texi cpt.info
+
+.SUFFIXES: .info .texi .org .txt
+.org.texi:
+ rm -f $@
+ ${EMACS} $< --batch --eval "(require 'vc)" -f org-texinfo-export-to-texinfo
+
+.texi.info:
+ ${MAKEINFO} $< -o $@
+
+.org.txt:
+ rm -f $@
+ ${EMACS} $< --batch --eval "(require 'vc)" -f org-ascii-export-to-ascii
+
+clean:
+ rm -f cpt.info
+
+all-clean: clean
+ rm -f cpt.texi cpt.txt
+
+install: all
+ ${INSTALL_SH} -Dm644 cpt.txt ${DESTDIR}${CPTDOC}/cpt.txt
+ ${INSTALL_SH} -Dm644 cpt.info ${DESTDIR}${INFODIR}/cpt.info
+
+uninstall:
+ rm -rf ${DESTDIR}${CPTDOC}
+ rm -f ${DESTDIR}${INFODIR}/cpt.info
+
+.PHONY: all clean all-clean install uninstall