aboutsummaryrefslogtreecommitdiff
path: root/docs/Makefile
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-11-03 15:55:35 +0000
committermerakor <cem@ckyln.com>2021-11-03 15:55:35 +0000
commit7dad1eba610d536eeacf2339a96f9237a877cfa8 (patch)
treef6097303c206cd92587c2938a4c938bd11c35656 /docs/Makefile
parent63c72b793cd485f43594469bcccdfc7b55b8fcbc (diff)
downloadcpt-7dad1eba610d536eeacf2339a96f9237a877cfa8.tar.gz
docs: update
FossilOrigin-Name: 8e30379517e52eff70fc2a6b8c0cf1a002a718f42192a55d0687e8432f2e4cf3
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 3a7dbf0..7c5a431 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -4,6 +4,13 @@ INSTALL_SH = ../tools/install.sh
all: cpt.txt cpt.texi cpt.info
+config.org: ../config.mk
+ printf '%s\n' '#+MACRO: version $(VERSION)' \
+ '#+MACRO: conf_dir (eval (concat "=$(SYSCONFDIR)/cpt/" $$1 "="))' \
+ '#+MACRO: data_dir (eval (concat "=$(DATAROOTDIR)/" $$1 "="))' > config.org
+
+cpt.txt cpt.texi cpt.info: cpt.org config.org
+
.SUFFIXES: .info .texi .org .txt
.org.texi:
rm -f $@
@@ -20,6 +27,6 @@ clean:
rm -f cpt.info
all-clean: clean
- rm -f cpt.texi cpt.txt
+ rm -f cpt.texi cpt.txt config.org
.PHONY: all clean all-clean install uninstall