1998-03-01 09:16:16 +01:00
|
|
|
# Postgres documentation makefile
|
|
|
|
# Thomas Lockhart
|
|
|
|
|
|
|
|
PGDOCS= ..
|
|
|
|
SRCDIR= ../../src
|
|
|
|
|
|
|
|
TAR= tar
|
|
|
|
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml'
|
|
|
|
|
|
|
|
# Pick up Makefile.custom from the source area
|
|
|
|
# This is the only resource from the code source area and is optional
|
|
|
|
|
|
|
|
ifneq ($(wildcard $(SRCDIR)/Makefile.custom), )
|
|
|
|
include $(SRCDIR)/Makefile.custom
|
|
|
|
endif
|
|
|
|
|
1998-03-01 21:47:20 +01:00
|
|
|
SRC= admin postgres programmer tutorial user
|
1998-03-01 09:16:16 +01:00
|
|
|
|
1998-03-01 21:47:20 +01:00
|
|
|
TARGETS= $(SRC:%=%.tar.gz)
|
1998-03-01 09:16:16 +01:00
|
|
|
|
1998-03-01 21:47:20 +01:00
|
|
|
.PRECIOUS:
|
|
|
|
.PHONY: install all sources clean distclean
|
1998-03-01 09:16:16 +01:00
|
|
|
|
|
|
|
install::
|
|
|
|
$(MAKE) all
|
1998-03-01 21:47:20 +01:00
|
|
|
(mv -f *.gz ..)
|
|
|
|
|
|
|
|
clean::
|
|
|
|
$(MAKE) -C sgml clean
|
|
|
|
|
|
|
|
distclean::
|
|
|
|
$(MAKE) -C sgml distclean
|
1998-03-01 09:16:16 +01:00
|
|
|
|
1998-03-01 21:47:20 +01:00
|
|
|
all:: $(TARGETS)
|
1998-03-01 09:16:16 +01:00
|
|
|
|
|
|
|
sources::
|
1998-03-01 21:47:20 +01:00
|
|
|
($(TAR) zcf sources.tar.gz sgml graphics)
|
1998-03-01 09:16:16 +01:00
|
|
|
|
1998-03-01 21:47:20 +01:00
|
|
|
admin.tar.gz:
|
1998-03-01 09:16:16 +01:00
|
|
|
$(MAKE) -C sgml clean
|
1998-03-01 21:47:20 +01:00
|
|
|
$(MAKE) -C sgml admin.html
|
|
|
|
($(TAR) zcf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics layout.gif)
|
|
|
|
|
|
|
|
postgres.tar.gz:
|
|
|
|
$(MAKE) -C sgml clean
|
|
|
|
$(MAKE) -C sgml postgres.html
|
|
|
|
($(TAR) zcf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif layout.gif)
|
|
|
|
|
|
|
|
programmer.tar.gz:
|
|
|
|
$(MAKE) -C sgml clean
|
|
|
|
$(MAKE) -C sgml programmer.html
|
|
|
|
($(TAR) zcf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif)
|
1998-03-01 09:16:16 +01:00
|
|
|
|
|
|
|
tutorial.tar.gz:
|
|
|
|
$(MAKE) -C sgml clean
|
|
|
|
$(MAKE) -C sgml tutorial.html
|
|
|
|
($(TAR) zcf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif)
|
|
|
|
|
1998-03-01 21:47:20 +01:00
|
|
|
user.tar.gz:
|
1998-03-01 09:16:16 +01:00
|
|
|
$(MAKE) -C sgml clean
|
1998-03-01 21:47:20 +01:00
|
|
|
$(MAKE) -C sgml user.html
|
|
|
|
($(TAR) zcf $@ $(TAREXCLUDE) -C sgml .)
|
1998-03-01 09:16:16 +01:00
|
|
|
|
|
|
|
# Generic production rules
|
|
|
|
|
|
|
|
# Compressed file
|
|
|
|
|
|
|
|
%.gz: %
|
|
|
|
(gzip -f $<)
|
|
|
|
|