2016-03-09 14:33:46 -05:00
|
|
|
# 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)
|
2016-06-05 09:14:14 -04:00
|
|
|
$(DOCBOOK_TO_MAN) xmlwf.xml > $@ || { rm $@ ; exit 1; }
|
2016-03-09 14:33:46 -05:00
|
|
|
|
|
|
|
xmlwf.xml: xmlwf.sgml
|
|
|
|
which $(SGML_TO_XML)
|
2016-05-06 14:59:17 -04:00
|
|
|
$(SGML_TO_XML) xmlwf.sgml > $@ || true
|
2016-03-09 14:33:46 -05:00
|
|
|
grep -q '^<?xml' $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(RM) xmlwf.1 XMLWF.1 xmlwf.xml
|