Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita16461d

Browse files
committed
Simplify and speed up man page installation
1 parent61c4513 commita16461d

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

‎doc/src/sgml/Makefile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.123 2009/08/1120:16:03 alvherre Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.124 2009/08/1121:53:06 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -307,21 +307,17 @@ install-html: html installdirs
307307

308308
## Install man
309309

310+
install-man: man installdirs
311+
310312
sqlmansect ?= 7
311313
sqlmansectnum =$(shell expr X'$(sqlmansect)' : X'\([0-9]\)')
312314

313-
defineinstall-man-func
314-
for file in$(1); do \
315-
$(INSTALL_DATA) $$file$(DESTDIR)$(mandir)/`echo $$file | sed 's,^$(2),,'` || exit; \
316-
done
317-
endef
318-
319315
# Before we install the man pages, we massage the section numbers to
320316
# follow the local conventions.
321317
#
322318
ifeq ($(sqlmansectnum),7)
323319
install-man:
324-
$(call install-man-func,$(addprefix$(srcdir)/,man1/*.1 man3/*.3 man$(sqlmansectnum)/*.$(sqlmansect)),$(srcdir)/)
320+
cp -R$(addprefix$(srcdir)/,man1 man3 man7)'$(DESTDIR)$(mandir)'
325321

326322
else # sqlmansectnum != 7
327323
fix_sqlmansectnum = sed -e '/^\.TH/s/"7"/"$(sqlmansect)"/'\
@@ -348,7 +344,7 @@ $(fixed_sql_manpage_files): fixedman/man$(sqlmansectnum)/%.$(sqlmansect): man7/%
348344
$(fix_sqlmansectnum)$<>$@
349345

350346
install-man: all-man
351-
$(call install-man-func,$(fixed_manpage_files),fixedman/)
347+
cp -R$(sort$(dir$(fixed_manpage_files)))'$(DESTDIR)$(mandir)'
352348

353349
clean: clean-man
354350
.PHONY: clean-man

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp