xref: /netbsd/external/mit/expat/dist/doc/Makefile.am (revision ae9c10eb)
1716c1023Smaya#
2716c1023Smaya#                          __  __            _
3716c1023Smaya#                       ___\ \/ /_ __   __ _| |_
4716c1023Smaya#                      / _ \\  /| '_ \ / _` | __|
5716c1023Smaya#                     |  __//  \| |_) | (_| | |_
6716c1023Smaya#                      \___/_/\_\ .__/ \__,_|\__|
7716c1023Smaya#                               |_| XML parser
8716c1023Smaya#
9*ae9c10ebSchristos# Copyright (c) 2017-2022 Sebastian Pipping <sebastian@pipping.org>
10*ae9c10ebSchristos# Copyright (c) 2017      Stephen Groat <stephen@groat.us>
11*ae9c10ebSchristos# Copyright (c) 2017      Joe Orton <jorton@redhat.com>
12716c1023Smaya# Licensed under the MIT license:
13716c1023Smaya#
14716c1023Smaya# Permission is  hereby granted,  free of charge,  to any  person obtaining
15716c1023Smaya# a  copy  of  this  software   and  associated  documentation  files  (the
16716c1023Smaya# "Software"),  to  deal in  the  Software  without restriction,  including
17716c1023Smaya# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
18716c1023Smaya# distribute, sublicense, and/or sell copies of the Software, and to permit
19716c1023Smaya# persons  to whom  the Software  is  furnished to  do so,  subject to  the
20716c1023Smaya# following conditions:
21716c1023Smaya#
22716c1023Smaya# The above copyright  notice and this permission notice  shall be included
23716c1023Smaya# in all copies or substantial portions of the Software.
24716c1023Smaya#
25716c1023Smaya# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
26716c1023Smaya# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
27716c1023Smaya# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
28716c1023Smaya# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
29716c1023Smaya# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
30716c1023Smaya# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
31716c1023Smaya# USE OR OTHER DEALINGS IN THE SOFTWARE.
32716c1023Smaya
33716c1023Smaya.PHONY: dist-hook  # not inside conditional to avoid automake warning
34716c1023Smaya
35716c1023Smayaif WITH_DOCBOOK
36716c1023Smayadist_man_MANS = xmlwf.1
37716c1023Smaya
38716c1023Smayaxmlwf.1: xmlwf.xml
39716c1023Smaya	-rm -f $@
40716c1023Smaya	$(DOCBOOK_TO_MAN) $<
41716c1023Smaya	test -f $@ || mv XMLWF.1 $@
42716c1023Smayaelse
43716c1023Smayadist-hook:
44716c1023Smaya	@echo 'ERROR: Configure with --with-docbook for "make dist".' 1>&2
45716c1023Smaya	@false
46716c1023Smayaendif
47716c1023Smaya
48716c1023Smaya# https://www.gnu.org/software/automake/manual/automake.html#What-Gets-Cleaned
49716c1023Smaya.PHONY: clean-local
50716c1023Smayaclean-local: clean-local-check
51716c1023Smaya
52716c1023Smaya.PHONY: clean-local-check
53716c1023Smayaclean-local-check:
54716c1023Smaya	$(RM) xmlwf.1
55716c1023Smaya
56716c1023SmayaEXTRA_DIST = \
57*ae9c10ebSchristos    ok.min.css \
58716c1023Smaya    reference.html \
59716c1023Smaya    style.css \
60716c1023Smaya    xmlwf.xml
61