xref: /freebsd/contrib/expat/doc/Makefile.am (revision 6b2c1e49da284f28ec7b52f7c031474087e37104)
10a48773fSEric van Gyzen#
20a48773fSEric van Gyzen#                          __  __            _
30a48773fSEric van Gyzen#                       ___\ \/ /_ __   __ _| |_
40a48773fSEric van Gyzen#                      / _ \\  /| '_ \ / _` | __|
50a48773fSEric van Gyzen#                     |  __//  \| |_) | (_| | |_
60a48773fSEric van Gyzen#                      \___/_/\_\ .__/ \__,_|\__|
70a48773fSEric van Gyzen#                               |_| XML parser
80a48773fSEric van Gyzen#
90a48773fSEric van Gyzen# Copyright (c) 2017 Expat development team
100a48773fSEric van Gyzen# Licensed under the MIT license:
110a48773fSEric van Gyzen#
120a48773fSEric van Gyzen# Permission is  hereby granted,  free of charge,  to any  person obtaining
130a48773fSEric van Gyzen# a  copy  of  this  software   and  associated  documentation  files  (the
140a48773fSEric van Gyzen# "Software"),  to  deal in  the  Software  without restriction,  including
150a48773fSEric van Gyzen# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
160a48773fSEric van Gyzen# distribute, sublicense, and/or sell copies of the Software, and to permit
170a48773fSEric van Gyzen# persons  to whom  the Software  is  furnished to  do so,  subject to  the
180a48773fSEric van Gyzen# following conditions:
190a48773fSEric van Gyzen#
200a48773fSEric van Gyzen# The above copyright  notice and this permission notice  shall be included
210a48773fSEric van Gyzen# in all copies or substantial portions of the Software.
220a48773fSEric van Gyzen#
230a48773fSEric van Gyzen# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
240a48773fSEric van Gyzen# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
250a48773fSEric van Gyzen# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
260a48773fSEric van Gyzen# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
270a48773fSEric van Gyzen# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
280a48773fSEric van Gyzen# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
290a48773fSEric van Gyzen# USE OR OTHER DEALINGS IN THE SOFTWARE.
300a48773fSEric van Gyzen
31*6b2c1e49SXin LI.PHONY: dist-hook  # not inside conditional to avoid automake warning
32*6b2c1e49SXin LI
33*6b2c1e49SXin LIif WITH_DOCBOOK
340a48773fSEric van Gyzendist_man_MANS = xmlwf.1
350a48773fSEric van Gyzen
360a48773fSEric van Gyzenxmlwf.1: xmlwf.xml
370a48773fSEric van Gyzen	-rm -f $@
380a48773fSEric van Gyzen	$(DOCBOOK_TO_MAN) $<
390a48773fSEric van Gyzen	test -f $@ || mv XMLWF.1 $@
400a48773fSEric van Gyzenelse
41*6b2c1e49SXin LIdist-hook:
420a48773fSEric van Gyzen	@echo 'ERROR: Configure with --with-docbook for "make dist".' 1>&2
430a48773fSEric van Gyzen	@false
440a48773fSEric van Gyzenendif
450a48773fSEric van Gyzen
460a48773fSEric van Gyzen# https://www.gnu.org/software/automake/manual/automake.html#What-Gets-Cleaned
470a48773fSEric van Gyzen.PHONY: clean-local
480a48773fSEric van Gyzenclean-local: clean-local-check
490a48773fSEric van Gyzen
500a48773fSEric van Gyzen.PHONY: clean-local-check
510a48773fSEric van Gyzenclean-local-check:
520a48773fSEric van Gyzen	$(RM) xmlwf.1
530a48773fSEric van Gyzen
540a48773fSEric van GyzenEXTRA_DIST = \
550a48773fSEric van Gyzen    expat.png \
560a48773fSEric van Gyzen    reference.html \
570a48773fSEric van Gyzen    style.css \
580a48773fSEric van Gyzen    valid-xhtml10.png \
590a48773fSEric van Gyzen    xmlwf.xml
60