postgresql/doc/src/Makefile

71 lines
1.4 KiB
Makefile
Raw Normal View History

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
SRC= admin postgres programmer tutorial user
1998-03-01 09:16:16 +01:00
TARGETS= $(SRC:%=%.tar.gz)
1998-03-01 09:16:16 +01:00
.PRECIOUS:
.PHONY: install all sources clean distclean
1998-03-01 09:16:16 +01:00
install::
$(MAKE) all
(mv -f *.gz ..)
clean::
$(MAKE) -C sgml clean
distclean::
$(MAKE) -C sgml distclean
1998-03-01 09:16:16 +01:00
all:: $(TARGETS)
1998-03-01 09:16:16 +01:00
sources::
($(TAR) zcf sources.tar.gz sgml graphics)
1998-03-01 09:16:16 +01:00
admin.tar.gz:
1998-03-01 09:16:16 +01:00
$(MAKE) -C sgml clean
$(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)
user.tar.gz:
1998-03-01 09:16:16 +01:00
$(MAKE) -C sgml clean
$(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 $<)