libexpat/expat/doc/Makefile
Sebastian Pipping 3bdfa930a9 doc/xmlwf.1: Generate from sources using docbook2X
As aside effect the mistaken content

  BUGS
    According to the W3C standard, an XML file without a
    declaration at the beginning is not considered well-formed.
    However, xmlwf allows this to pass.

disappears from the man page.  This is related to bug 470
https://sourceforge.net/p/expat/bugs/470/ or
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412786
in Debian.
2016-03-12 00:23:16 +01:00

25 lines
430 B
Makefile

# Copyright (C) Sebastian Pipping <sebastian@pipping.org>
# Licensed under MIT/X License
DOCBOOK_TO_MAN = docbook2x-man
SGML_TO_XML = sgml2xml-isoent
.PHONY: all
all: xmlwf.1
xmlwf.1: XMLWF.1
cp $< $@
XMLWF.1: xmlwf.xml
which $(DOCBOOK_TO_MAN)
$(DOCBOOK_TO_MAN) $< > $@
xmlwf.xml: xmlwf.sgml
which $(SGML_TO_XML)
$(SGML_TO_XML) $< > $@ || true
grep -q '^<?xml' $@
.PHONY: clean
clean:
$(RM) xmlwf.1 XMLWF.1 xmlwf.xml