postgresql/doc/src/Makefile
Thomas G. Lockhart 2c2a9a0fab Define ZIP rather than GZIP.
Define ZIPSUFFIX to allow substitution of something other than gzip.
2000-09-12 03:47:36 +00:00

78 lines
1.7 KiB
Makefile

# Postgres documentation makefile
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.13 2000/09/12 03:47:36 thomas Exp $
subdir = doc/src
top_builddir = ../..
-include $(top_builddir)/src/Makefile.global
TAR= tar
ZIP= gzip
ZIPSUFFIX= gz
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
SRC= admin postgres programmer tutorial user
TARGETS= $(SRC:%=%.tar.$(ZIPSUFFIX))
.PRECIOUS:
.PHONY: install all sources clean distclean
install:
$(MAKE) all
(mv -f *.$(ZIPSUFFIX) ..)
clean:
$(MAKE) -C sgml clean
distclean:
$(MAKE) -C sgml distclean
all: $(TARGETS)
sources:
$(MAKE) sources.tar.$(ZIPSUFFIX)
sources.tar:
($(TAR) -cf $@ sgml graphics)
admin.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml admin.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics layout.gif)
installation.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml installation.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
postgres.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml postgres.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif clientserver.gif connections.gif layout.gif)
programmer.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml programmer.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif)
tutorial.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml tutorial.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics clientserver.gif)
user.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml user.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
man.tar:
$(MAKE) -C sgml man
$(TAR) -cf $@ -C sgml man1 manl
# Generic production rules
# Compressed file
%.$(ZIPSUFFIX): %
$(ZIP) -f $<