Commit 8b97d7a8 authored by Peter Eisentraut's avatar Peter Eisentraut

Only install the integrated HTML documentation set (not the individual

books separately), in directory $(docdir)/html.
parent f4e995e1
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# Copyright (c) 1994, Regents of the University of California # Copyright (c) 1994, Regents of the University of California
# #
# $Header: /cvsroot/pgsql/doc/Makefile,v 1.19 2000/09/17 13:02:28 petere Exp $ # $Header: /cvsroot/pgsql/doc/Makefile,v 1.20 2000/12/26 20:47:07 petere Exp $
# #
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
...@@ -23,9 +23,9 @@ top_builddir = .. ...@@ -23,9 +23,9 @@ top_builddir = ..
include $(top_builddir)/src/Makefile.global include $(top_builddir)/src/Makefile.global
MODULES := admin postgres programmer tutorial user ifneq ($(wildcard $(srcdir)/postgres.tar.gz),)
found_html := yes
found_MODULES := $(foreach module, $(MODULES), $(shell test -f $(srcdir)/$(module).tar.gz && echo $(module))) endif
ifneq ($(wildcard $(srcdir)/man.tar.gz),) ifneq ($(wildcard $(srcdir)/man.tar.gz),)
found_man := yes found_man := yes
...@@ -36,11 +36,8 @@ all: ...@@ -36,11 +36,8 @@ all:
install: all installdirs install: all installdirs
ifneq ($(strip $(found_MODULES)),) ifdef found_html
for module in $(found_MODULES); do \ gzip -d -c postgres.tar.gz | ( cd $(DESTDIR)$(docdir)/html && $(TAR) xf - )
gzip -d -c $${module}.tar.gz | ( cd $(DESTDIR)$(docdir)/$$module && $(TAR) xf - ) || \
exit; \
done
endif endif
ifdef found_man ifdef found_man
gzip -d -c man.tar.gz | ( cd $(DESTDIR)$(mandir) && $(TAR) xf - ) gzip -d -c man.tar.gz | ( cd $(DESTDIR)$(mandir) && $(TAR) xf - )
...@@ -48,11 +45,13 @@ endif ...@@ -48,11 +45,13 @@ endif
installdirs: installdirs:
$(mkinstalldirs) $(DESTDIR)$(mandir) $(addprefix $(DESTDIR)$(docdir)/, . $(found_MODULES)) $(mkinstalldirs) $(DESTDIR)$(mandir) $(DESTDIR)$(docdir)/html
uninstall: uninstall:
-rm -rf $(addprefix $(DESTDIR)$(docdir)/, $(MODULES)) ifdef found_html
-rm -f $(addprefix $(DESTDIR)$(docdir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
endif
ifdef found_man ifdef found_man
-rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c man.tar.gz | tar tf -)) -rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf -))
endif endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment