mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-03 09:59:53 +02:00
c8ebcc9c41
This is officially a fork!
33 lines
566 B
Makefile
33 lines
566 B
Makefile
|
|
manpages = pg_arman.1
|
|
|
|
EXTRA_DIST = pg_arman.txt Makefile $(manpages)
|
|
|
|
htmls = pg_arman.html README.html
|
|
|
|
# We have asciidoc and xmlto, so build everything and define correct
|
|
# rules for build.
|
|
ifneq ($(ASCIIDOC),)
|
|
ifneq ($(XMLTO),)
|
|
dist_man_MANS = $(manpages)
|
|
doc_DATA = $(htmls)
|
|
|
|
pg_arman.1: pg_arman.xml $(doc_DATA)
|
|
$(XMLTO) man $<
|
|
|
|
%.xml: %.txt
|
|
$(ASCIIDOC) -b docbook -d manpage -o $@ $<
|
|
|
|
%.html: %.txt
|
|
$(ASCIIDOC) -a toc -o $@ $<
|
|
|
|
README.html: ../README
|
|
$(ASCIIDOC) -a toc -o $@ $<
|
|
|
|
endif # XMLTO
|
|
endif # ASCIIDOC
|
|
|
|
clean:
|
|
rm -rf $(manpages) *.html *.xml
|
|
|