mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
Makefile: improve documentation targets
- add documentation targets to main Makefile - ensure clean/maintainer-clean remove all generated documentation files
This commit is contained in:
18
Makefile.in
18
Makefile.in
@@ -77,14 +77,31 @@ Makefile: Makefile.in config.status configure
|
|||||||
Makefile.global: Makefile.global.in config.status configure
|
Makefile.global: Makefile.global.in config.status configure
|
||||||
./config.status $@
|
./config.status $@
|
||||||
|
|
||||||
|
doc: repmgr_version.h
|
||||||
|
$(MAKE) -C doc html
|
||||||
|
|
||||||
|
doc-repmgr.html: repmgr_version.h
|
||||||
|
$(MAKE) -C doc repmgr.html
|
||||||
|
|
||||||
|
doc-repmgr-A4.pdf: repmgr_version.h
|
||||||
|
$(MAKE) -C doc repmgr-A4.pdf
|
||||||
|
|
||||||
|
doc-repmgr-US.pdf: repmgr_version.h
|
||||||
|
$(MAKE) -C doc repmgr-US.pdf
|
||||||
|
|
||||||
|
install-doc: doc
|
||||||
|
$(MAKE) -C doc install
|
||||||
|
|
||||||
clean: additional-clean
|
clean: additional-clean
|
||||||
|
|
||||||
maintainer-clean: additional-maintainer-clean
|
maintainer-clean: additional-maintainer-clean
|
||||||
|
|
||||||
additional-clean:
|
additional-clean:
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
|
$(MAKE) -C doc clean
|
||||||
|
|
||||||
additional-maintainer-clean: clean
|
additional-maintainer-clean: clean
|
||||||
|
$(MAKE) -C doc maintainer-clean
|
||||||
rm -f config.status config.log
|
rm -f config.status config.log
|
||||||
rm -f config.h
|
rm -f config.h
|
||||||
rm -f repmgr_version.h
|
rm -f repmgr_version.h
|
||||||
@@ -104,3 +121,4 @@ installdirs-scripts:
|
|||||||
.PHONY: installdirs-scripts
|
.PHONY: installdirs-scripts
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.PHONY: doc doc-repmgr.html doc-repmgr-A4.pdf doc-repmgr-US.pdf install-doc
|
||||||
|
|||||||
@@ -91,6 +91,9 @@ install: html
|
|||||||
clean:
|
clean:
|
||||||
rm -f html-stamp
|
rm -f html-stamp
|
||||||
rm -f HTML.index $(GENERATED_XML)
|
rm -f HTML.index $(GENERATED_XML)
|
||||||
|
rm -f repmgr.html
|
||||||
|
rm -f repmgr-A4.pdf
|
||||||
|
rm -f repmgr-US.pdf
|
||||||
|
|
||||||
maintainer-clean:
|
maintainer-clean:
|
||||||
rm -rf html
|
rm -rf html
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ deb-src http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main</programlisti
|
|||||||
<para>
|
<para>
|
||||||
To build the documentation as HTML, execute:
|
To build the documentation as HTML, execute:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
cd doc/ && make</programlisting>
|
./configure && make doc</programlisting>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
The generated HTML files will be placed in the <filename>doc/html</filename>
|
The generated HTML files will be placed in the <filename>doc/html</filename>
|
||||||
@@ -271,14 +271,14 @@ deb-src http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main</programlisti
|
|||||||
To build the documentation as a single HTML file, after configuring and building
|
To build the documentation as a single HTML file, after configuring and building
|
||||||
the main &repmgr; source as described above, execute:
|
the main &repmgr; source as described above, execute:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
cd doc/ && make repmgr.html</programlisting>
|
./configure && make doc-repmgr.html</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
To build the documentation as a PDF file, after configuring and building
|
To build the documentation as a PDF file, after configuring and building
|
||||||
the main &repmgr; source as described above, execute:
|
the main &repmgr; source as described above, execute:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
cd doc/ && make repmgr-A4.pdf</programlisting>
|
./configure && make doc-repmgr-A4.pdf</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user