2
2
#
3
3
# PostgreSQL documentation makefile
4
4
#
5
- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.138 2010/02/05 19:31:18 momjian Exp $
5
+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.139 2010/03/30 00:10:46 petere Exp $
6
6
#
7
7
# ----------------------------------------------------------------------------
8
8
@@ -22,7 +22,9 @@ top_builddir = ../../..
22
22
include $(top_builddir ) /src/Makefile.global
23
23
24
24
25
- distprep : html man
25
+ all : html man
26
+
27
+ distprep : html distprep-man
26
28
27
29
28
30
ifndef COLLATEINDEX
@@ -73,7 +75,7 @@ override SPFLAGS += -wall -wno-unused-param -wno-empty -wfully-tagged
73
75
# # Man pages
74
76
# #
75
77
76
- man : man-stamp
78
+ man distprep-man : man-stamp
77
79
78
80
man-stamp : stylesheet-man.xsl postgres.xml
79
81
$(XSLTPROC ) $(XSLTPROCFLAGS ) $(XSLTPROC_MAN_FLAGS ) $^
@@ -271,19 +273,14 @@ check: postgres.sgml $(ALMOSTALLSGML) check-tabs
271
273
# # Install
272
274
# #
273
275
274
- vpathsearch = $( firstword $( wildcard $(addsuffix /$(1 ) ,$(subst :, ,. $(VPATH ) ) ) ) )
276
+ vpathsearch = ` for f in $( addsuffix /$( 1) ,$( subst :, ,. $( VPATH) ) ) ; do test -r $$ f && echo $$ f && break ; done `
275
277
276
- found_html = $( wildcard html-stamp $( srcdir ) / html-stamp)
278
+ install : install- html
277
279
278
- ifneq ($(wildcard man-stamp $(srcdir ) /man-stamp) ,)
279
- # SCO OpenServer's man system is sufficiently different to not bother.
280
280
ifneq ($(PORTNAME ) , sco)
281
- found_man = yes
282
- endif
281
+ install : install-man
283
282
endif
284
283
285
- install : $(if $(found_html ) ,install-html) $(if $(found_man ) ,install-man)
286
-
287
284
installdirs :
288
285
$(MKDIR_P ) ' $(DESTDIR)$(htmldir)' /html $(addprefix '$(DESTDIR )$(mandir ) '/man, 1 3 $(sqlmansectnum ) )
289
286
@@ -324,8 +321,7 @@ fixed_sql_manpage_files = $(patsubst $(srcdir)/man7/%.7,fixedman/man$(sqlmansect
324
321
325
322
fixed_manpage_files = $(fixed_nonsql_manpage_files ) $(fixed_sql_manpage_files )
326
323
327
- all : all-man
328
- all-man : $(fixed_manpage_files )
324
+ man : $(fixed_manpage_files )
329
325
330
326
$(fixed_nonsql_manpage_files ) : fixedman/% : %
331
327
@$(MKDIR_P ) $(dir $@ )
@@ -335,7 +331,7 @@ $(fixed_sql_manpage_files): fixedman/man$(sqlmansectnum)/%.$(sqlmansect): man7/%
335
331
@$(MKDIR_P ) $(dir $@ )
336
332
$(fix_sqlmansectnum ) $< > $@
337
333
338
- install-man : all- man
334
+ install-man : man
339
335
cp -R $(sort $(dir $(fixed_manpage_files ) ) ) ' $(DESTDIR)$(mandir)'
340
336
341
337
clean : clean-man
0 commit comments