Skip to content

Commit 8b97d7a

Browse files
committed
Only install the integrated HTML documentation set (not the individual
books separately), in directory $(docdir)/html.
1 parent f4e995e commit 8b97d7a

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 := admin postgres 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+
ifdef found_html
40+
gzip -d -c postgres.tar.gz | ( cd $(DESTDIR)$(docdir)/html && $(TAR) xf - )
4441
endif
4542
ifdef found_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+
ifdef found_html
53+
-rm -f $(addprefix $(DESTDIR)$(docdir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
54+
endif
5655
ifdef found_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)