1998-03-01 16:16:16 +08:00
|
|
|
# Postgres documentation makefile
|
|
|
|
# Thomas Lockhart
|
|
|
|
|
1999-07-07 01:13:50 +08:00
|
|
|
# Not yet generated from configure, so use relative path names for now...
|
1998-03-01 16:16:16 +08:00
|
|
|
PGDOCS= ..
|
|
|
|
SRCDIR= ../../src
|
|
|
|
|
|
|
|
TAR= tar
|
1998-05-10 06:32:03 +08:00
|
|
|
ZIP= gzip
|
1998-10-31 17:35:19 +08:00
|
|
|
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
|
1998-03-01 16:16:16 +08:00
|
|
|
|
1998-04-06 01:07:32 +08:00
|
|
|
# Pick up Makefile.global from the source area
|
1998-03-01 16:16:16 +08:00
|
|
|
# This is the only resource from the code source area and is optional
|
|
|
|
|
1998-04-06 01:07:32 +08:00
|
|
|
ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
|
|
|
|
include $(SRCDIR)/Makefile.global
|
1998-03-01 16:16:16 +08:00
|
|
|
endif
|
|
|
|
|
1998-03-02 04:47:20 +08:00
|
|
|
SRC= admin postgres programmer tutorial user
|
1998-03-01 16:16:16 +08:00
|
|
|
|
1998-03-02 04:47:20 +08:00
|
|
|
TARGETS= $(SRC:%=%.tar.gz)
|
1998-03-01 16:16:16 +08:00
|
|
|
|
1998-03-02 04:47:20 +08:00
|
|
|
.PRECIOUS:
|
|
|
|
.PHONY: install all sources clean distclean
|
1998-03-01 16:16:16 +08:00
|
|
|
|
|
|
|
install::
|
|
|
|
$(MAKE) all
|
1998-03-02 04:47:20 +08:00
|
|
|
(mv -f *.gz ..)
|
|
|
|
|
|
|
|
clean::
|
|
|
|
$(MAKE) -C sgml clean
|
|
|
|
|
|
|
|
distclean::
|
|
|
|
$(MAKE) -C sgml distclean
|
1998-03-01 16:16:16 +08:00
|
|
|
|
1998-03-02 04:47:20 +08:00
|
|
|
all:: $(TARGETS)
|
1998-03-01 16:16:16 +08:00
|
|
|
|
|
|
|
sources::
|
1998-05-10 06:32:03 +08:00
|
|
|
$(MAKE) sources.tar.gz
|
1998-03-01 16:16:16 +08:00
|
|
|
|
1998-05-10 06:32:03 +08:00
|
|
|
sources.tar:
|
|
|
|
($(TAR) -cf $@ sgml graphics)
|
|
|
|
|
|
|
|
admin.tar:
|
1998-03-01 16:16:16 +08:00
|
|
|
$(MAKE) -C sgml clean
|
1998-03-02 04:47:20 +08:00
|
|
|
$(MAKE) -C sgml admin.html
|
1998-10-31 17:35:19 +08:00
|
|
|
(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)
|
1998-03-02 04:47:20 +08:00
|
|
|
|
1998-05-10 06:32:03 +08:00
|
|
|
postgres.tar:
|
1998-03-02 04:47:20 +08:00
|
|
|
$(MAKE) -C sgml clean
|
|
|
|
$(MAKE) -C sgml postgres.html
|
1999-07-15 04:31:42 +08:00
|
|
|
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif clientserver.gif connections.gif layout.gif)
|
1998-03-02 04:47:20 +08:00
|
|
|
|
1998-05-10 06:32:03 +08:00
|
|
|
programmer.tar:
|
1998-03-02 04:47:20 +08:00
|
|
|
$(MAKE) -C sgml clean
|
|
|
|
$(MAKE) -C sgml programmer.html
|
1998-10-31 17:35:19 +08:00
|
|
|
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif)
|
1998-03-01 16:16:16 +08:00
|
|
|
|
1998-05-10 06:32:03 +08:00
|
|
|
tutorial.tar:
|
1998-03-01 16:16:16 +08:00
|
|
|
$(MAKE) -C sgml clean
|
|
|
|
$(MAKE) -C sgml tutorial.html
|
1999-01-07 14:19:17 +08:00
|
|
|
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics clientserver.gif)
|
1998-03-01 16:16:16 +08:00
|
|
|
|
1998-05-10 06:32:03 +08:00
|
|
|
user.tar:
|
1998-03-01 16:16:16 +08:00
|
|
|
$(MAKE) -C sgml clean
|
1998-03-02 04:47:20 +08:00
|
|
|
$(MAKE) -C sgml user.html
|
1998-10-31 17:35:19 +08:00
|
|
|
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
|
1998-03-01 16:16:16 +08:00
|
|
|
|
1999-07-07 01:13:50 +08:00
|
|
|
man.tar:
|
1999-08-08 23:10:21 +08:00
|
|
|
$(MAKE) -C sgml man
|
1999-07-07 01:13:50 +08:00
|
|
|
$(TAR) -cf $@ -C sgml man1 manl
|
|
|
|
|
1998-03-01 16:16:16 +08:00
|
|
|
# Generic production rules
|
|
|
|
|
|
|
|
# Compressed file
|
|
|
|
|
|
|
|
%.gz: %
|
1998-05-10 06:32:03 +08:00
|
|
|
($(ZIP) -f $<)
|
1998-03-01 16:16:16 +08:00
|
|
|
|