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

Commit8b97d7a

Browse files
committed
Only install the integrated HTML documentation set (not the individual
books separately), in directory $(docdir)/html.
1 parentf4e995e commit8b97d7a

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

‎doc/Makefile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
7-
# $Header: /cvsroot/pgsql/doc/Makefile,v 1.19 2000/09/17 13:02:28 petere Exp $
7+
# $Header: /cvsroot/pgsql/doc/Makefile,v 1.20 2000/12/26 20:47:07 petere Exp $
88
#
99
#----------------------------------------------------------------------------
1010

@@ -23,9 +23,9 @@ top_builddir = ..
2323
include$(top_builddir)/src/Makefile.global
2424

2525

26-
MODULES := adminpostgres programmer tutorial user
27-
28-
found_MODULES :=$(foreach module,$(MODULES),$(shell test -f$(srcdir)/$(module).tar.gz && echo$(module)))
26+
ifneq ($(wildcard$(srcdir)/postgres.tar.gz),)
27+
found_html := yes
28+
endif
2929

3030
ifneq ($(wildcard$(srcdir)/man.tar.gz),)
3131
found_man := yes
@@ -36,23 +36,22 @@ all:
3636

3737

3838
install: all installdirs
39-
ifneq ($(strip$(found_MODULES)),)
40-
for module in $(found_MODULES); do \
41-
gzip -d -c $${module}.tar.gz | ( cd $(DESTDIR)$(docdir)/$$module && $(TAR) xf - ) || \
42-
exit; \
43-
done
39+
ifdeffound_html
40+
gzip -d -c postgres.tar.gz | ( cd $(DESTDIR)$(docdir)/html && $(TAR) xf - )
4441
endif
4542
ifdeffound_man
4643
gzip -d -c man.tar.gz | ( cd $(DESTDIR)$(mandir) && $(TAR) xf - )
4744
endif
4845

4946

5047
installdirs:
51-
$(mkinstalldirs)$(DESTDIR)$(mandir)$(addprefix$(DESTDIR)$(docdir)/, .$(found_MODULES))
48+
$(mkinstalldirs)$(DESTDIR)$(mandir)$(DESTDIR)$(docdir)/html
5249

5350

5451
uninstall:
55-
-rm -rf$(addprefix$(DESTDIR)$(docdir)/,$(MODULES))
52+
ifdeffound_html
53+
-rm -f $(addprefix $(DESTDIR)$(docdir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
54+
endif
5655
ifdeffound_man
57-
-rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c man.tar.gz | tar tf -))
56+
-rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c$(srcdir)/man.tar.gz | tar tf -))
5857
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp