diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2010-03-30 00:10:46 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2010-03-30 00:10:46 +0000 |
commit | 29ccc32c3024586a0b171cac4224277ddacecad8 (patch) | |
tree | 1a6fb752801a025d213ad2df78568a69b14f9406 /doc/src | |
parent | 3f76f9613d98890306086a3b18198c43d34a6d85 (diff) | |
download | postgresql-29ccc32c3024586a0b171cac4224277ddacecad8.tar.gz postgresql-29ccc32c3024586a0b171cac4224277ddacecad8.zip |
Separate targets "make docs" and "make install-docs" for the documentation
It is no longer installed by default, but included in "make world"/"make
install-world". Documentation updated accordingly.
Also, fix vpathsearch function to work when calling make install-docs
without previous make docs.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/Makefile | 24 | ||||
-rw-r--r-- | doc/src/sgml/installation.sgml | 15 |
2 files changed, 22 insertions, 17 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 7cce225a19b..1777ceb2aec 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -2,7 +2,7 @@ # # PostgreSQL documentation makefile # -# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.138 2010/02/05 19:31:18 momjian Exp $ +# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.139 2010/03/30 00:10:46 petere Exp $ # #---------------------------------------------------------------------------- @@ -22,7 +22,9 @@ top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -distprep: html man +all: html man + +distprep: html distprep-man ifndef COLLATEINDEX @@ -73,7 +75,7 @@ override SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged ## Man pages ## -man: man-stamp +man distprep-man: man-stamp man-stamp: stylesheet-man.xsl postgres.xml $(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_MAN_FLAGS) $^ @@ -271,19 +273,14 @@ check: postgres.sgml $(ALMOSTALLSGML) check-tabs ## Install ## -vpathsearch = $(firstword $(wildcard $(addsuffix /$(1),$(subst :, ,. $(VPATH))))) +vpathsearch = `for f in $(addsuffix /$(1),$(subst :, ,. $(VPATH))); do test -r $$f && echo $$f && break; done` -found_html = $(wildcard html-stamp $(srcdir)/html-stamp) +install: install-html -ifneq ($(wildcard man-stamp $(srcdir)/man-stamp),) -# SCO OpenServer's man system is sufficiently different to not bother. ifneq ($(PORTNAME), sco) -found_man = yes -endif +install: install-man endif -install: $(if $(found_html),install-html) $(if $(found_man),install-man) - installdirs: $(MKDIR_P) '$(DESTDIR)$(htmldir)'/html $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum)) @@ -324,8 +321,7 @@ fixed_sql_manpage_files = $(patsubst $(srcdir)/man7/%.7,fixedman/man$(sqlmansect fixed_manpage_files = $(fixed_nonsql_manpage_files) $(fixed_sql_manpage_files) -all: all-man -all-man: $(fixed_manpage_files) +man: $(fixed_manpage_files) $(fixed_nonsql_manpage_files): fixedman/%: % @$(MKDIR_P) $(dir $@) @@ -335,7 +331,7 @@ $(fixed_sql_manpage_files): fixedman/man$(sqlmansectnum)/%.$(sqlmansect): man7/% @$(MKDIR_P) $(dir $@) $(fix_sqlmansectnum) $< >$@ -install-man: all-man +install-man: man cp -R $(sort $(dir $(fixed_manpage_files))) '$(DESTDIR)$(mandir)' clean: clean-man diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 5db2a576070..22a8a6fba18 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.343 2010/03/17 17:12:31 petere Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.344 2010/03/30 00:10:46 petere Exp $ --> <chapter id="installation"> <title><![%standalone-include[<productname>PostgreSQL</>]]> @@ -1543,8 +1543,9 @@ All of PostgreSQL is successfully made. Ready to install. </para> <para> - If you want to build everything that can be built, including the HTML - documentation and the Additional Modules, type instead: + If you want to build everything that can be built, including the + documentation (HTML and man pages), and the additional modules + (<filename>contrib</filename>), type instead: <screen> <userinput>gmake world</userinput> </screen> @@ -1607,10 +1608,18 @@ PostgreSQL, contrib and HTML documentation successfully made. Ready to install. </para> <para> + To install the documentation (HTML and man pages), enter: +<screen> +<userinput>gmake install-docs</userinput> +</screen> + </para> + + <para> If you built the world above, type instead: <screen> <userinput>gmake install-world</userinput> </screen> + This also installs the documentation. </para> <para> |