blob: 59676221e26396bc0a3560aae49bb09e2025fd88 (
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
33
34
35
36
37
38
39
|
# This Makefile is meant to generate a dist tarball in order to avoid installing
# texinfo on the target system.
PREFIX = /usr/local
SHAREDIR = ${PREFIX}/share
INFODIR = ${SHAREDIR}/info
DOCDIR = ${SHAREDIR}/doc
TARBALL = carbs-docs-`date +%Y%m%d`
DESTDIR = ./carbslinux
TEXI = contribution.texi cpt.texi init.texi install.texi top.texi
OBJ = carbslinux.info carbslinux.txt
all: ${OBJ}
clean:
rm -f ${OBJ} ${TARBALL}.tar.gz
carbslinux.txt: ${TEXI}
makeinfo --plaintext top.texi -o carbslinux.txt
carbslinux.info: ${TEXI}
makeinfo top.texi -o carbslinux.info
dist: ${OBJ}
mkdir -p ${TARBALL}
cp ${OBJ} ${TEXI} Makefile README ${TARBALL}
tar -cf ${TARBALL}.tar ${TARBALL}
gzip -9 ${TARBALL}.tar
rm -rf ${TARBALL}.tar ${TARBALL}
htmldocs: ${OBJ}
rm -f -- ${DESTDIR}/*
makeinfo --html -o ${DESTDIR} top.texi
makeinfo --plaintext -o ${DESTDIR}/install.txt install.texi
install: carbslinux.info carbslinux.txt
install -Dm644 carbslinux.info ${DESTDIR}${INFODIR}/carbslinux.info
install -Dm644 carbslinux.txt ${DESTDIR}${DOCDIR}/carbslinux.txt
.PHONY: all dist htmldocs install clean
|