/ .. / / -> download
SOURCE=DMC-XMLUTILS-A-05-00-00-00A-040A-D_EN-CA.XML
OUTPUT=xml-format.1
README=../README.md

PREFIX=/usr/local
MAN_PREFIX=$(PREFIX)/share/man/man1
INSTALL=install -D

all: $(OUTPUT) $(README)

$(OUTPUT): $(SOURCE)
	s1kd2db $(SOURCE) | pandoc -f docbook -t man -s > $(OUTPUT)

$(README): $(SOURCE)
	s1kd2db $(SOURCE) | pandoc -f docbook -t markdown_github > $(README)

.PHONY: clean install uninstall

clean:
	rm -f $(OUTPUT) $(README)

install:
	$(INSTALL) $(OUTPUT) $(MAN_PREFIX)/$(OUTPUT)

uninstall:
	rm -f $(MAN_PREFIX)/$(OUTPUT)


/ gopher://khzae.net/0/s1000d/xml/xml-utils/src/utils/xml-format/doc/Makefile
Styles: Light Dark Classic