blob: 7c5a431d36a84eb7ff91fc5e4c4c9b44db21c18f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Carbs Packaging Tools Documentation
-include ../config.mk
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 $@
${EMACS} $< --batch -f org-texinfo-export-to-texinfo
.texi.info:
${MAKEINFO} $< -o $@
.org.txt:
rm -f $@
${EMACS} $< --batch -f org-ascii-export-to-ascii
clean:
rm -f cpt.info
all-clean: clean
rm -f cpt.texi cpt.txt config.org
.PHONY: all clean all-clean install uninstall
|