blob: b5dbaf3182239cdb43a9f917f8dcfc5d8ec12b22 (
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
|
#
# layman/doc/Makefile
# Simple Makefile to rebuild the documentation from the
# docbook XML sources
#
# Copyright (c) 1999-2005 Gentoo Foundation
# Released under v2 of the GNU GPL
#
# Author(s) Stuart Herbert <stuart@gentoo.org>
# Renat Lumpau <rl03@gentoo.org>
# Gunnar Wrobel <php@gunnarwrobel.de>
#
# ========================================================================
MAN_PAGES = layman.8
HTML_PAGES = layman.8.html
TMPFILE=./layman.man
PACKAGE_VERSION = `fgrep "VERSION = " ../layman/version.py | sed 's|^VERSION = '"'"'\(.\+\)'"'"'$$|\1|'`
all: man html
html: $(HTML_PAGES)
man: $(MAN_PAGES)
clean:
rm -f $(MAN_PAGES)
rm -f $(HTML_PAGES)
%.html: %.txt ../layman/version.py
@echo HTML $@
a2x --conf-file=asciidoc.conf --attribute="laymanversion=$(PACKAGE_VERSION)" --format=xhtml "$<"
%: %.txt ../layman/version.py
@echo MAN $@
a2x --conf-file=asciidoc.conf --attribute="laymanversion=$(PACKAGE_VERSION)" --format=manpage "$<"
|