mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-02 09:53:24 +02:00
d274d27cfc
This was kicking all the time a clean up of everything, rather unwelcome.
33 lines
561 B
Makefile
33 lines
561 B
Makefile
|
|
manpages = pg_rman.1
|
|
|
|
EXTRA_DIST = pg_rman.txt Makefile $(manpages)
|
|
|
|
htmls = pg_rman.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_rman.1: pg_rman.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
|
|
|