blob: fab05b91b23a706bce9e8c53e9257d1f243a62f5 [file] [log] [blame]
# Copyright(c) 2015-2017 Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
do_subst = sed -e 's,UTILITY,ndctl,g'
asciidoc.conf: ../asciidoc.conf.in
$(AM_V_GEN) $(do_subst) < $< > $@
man1_MANS = \
ndctl.1 \
ndctl-wait-scrub.1 \
ndctl-start-scrub.1 \
ndctl-zero-labels.1 \
ndctl-read-labels.1 \
ndctl-write-labels.1 \
ndctl-init-labels.1 \
ndctl-check-labels.1 \
ndctl-enable-region.1 \
ndctl-disable-region.1 \
ndctl-enable-dimm.1 \
ndctl-disable-dimm.1 \
ndctl-enable-namespace.1 \
ndctl-disable-namespace.1 \
ndctl-create-namespace.1 \
ndctl-destroy-namespace.1 \
ndctl-check-namespace.1 \
ndctl-inject-error.1 \
ndctl-inject-smart.1 \
ndctl-update-firmware.1 \
ndctl-list.1
CLEANFILES = $(man1_MANS)
XML_DEPS = \
../../version.m4 \
Makefile \
asciidoc.conf \
../copyright.txt \
region-description.txt \
xable-region-options.txt \
dimm-description.txt \
xable-dimm-options.txt \
xable-namespace-options.txt \
ars-description.txt \
labels-description.txt \
labels-options.txt
RM ?= rm -f
%.xml: %.txt $(XML_DEPS)
$(AM_V_GEN)$(RM) $@+ $@ && \
$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
--unsafe -andctl_version=$(VERSION) -o $@+ $< && \
mv $@+ $@
%.1: %.xml $(XML_DEPS)
$(AM_V_GEN)$(RM) $@ && \
$(XMLTO) -o . -m ../manpage-normal.xsl man $<