barectf_platform_linux_fs_init(): accept DS file path, not trace dir.
[barectf.git] / doc / man / Makefile
CommitLineData
0a7000dc
PP
1# The MIT License (MIT)
2#
3# Copyright (c) 2016 Philippe Proulx <pproulx@efficios.com>
4#
5# Permission is hereby granted, free of charge, to any person obtaining a copy
6# of this software and associated documentation files (the "Software"), to deal
7# in the Software without restriction, including without limitation the rights
8# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9# copies of the Software, and to permit persons to whom the Software is
10# furnished to do so, subject to the following conditions:
11#
12# The above copyright notice and this permission notice shall be included in
13# all copies or substantial portions of the Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21# THE SOFTWARE.
22
b4d4665f
PP
23# source
24SRC = barectf
25
26# config
27ASCIIDOC_CONF = asciidoc.conf
28XSL_FILES = \
29 manpage.xsl \
30 manpage-callouts.xsl \
31 manpage-bold-literal.xsl \
32 manpage-links.xsl
33XSL_SRC_FILES = $(addprefix xsl/,$(XSL_FILES))
34
35# tools
36ASCIIDOC ?= asciidoc
37XMLTO ?= xmlto
38ADOC = $(ASCIIDOC) -f $(ASCIIDOC_CONF) -d manpage \
5262b543 39 -a barectf_version=$(shell cd ../../barectf; python3 -c 'import __init__; print(__init__.__version__)')
b4d4665f
PP
40ADOC_DOCBOOK = $(ADOC) -b docbook
41XTO = $(XMLTO) -m $(firstword $(XSL_SRC_FILES)) man
42
43# recipes
44.PHONY: all
45
46all: $(SRC).1
47
48$(SRC).1.xml: $(SRC).1.txt $(ASCIIDOC_CONF)
49 $(ADOC_DOCBOOK) -o $@ $<
50
51$(SRC).1: $(SRC).1.xml $(XSL_SRC_FILES)
52 $(XTO) $<
53
54.PHONY: clean
55
56clean:
57 rm -f $(SRC).1 $(SRC).1.xml
This page took 0.030263 seconds and 4 git commands to generate.