postgresql/doc/src/Makefile

85 lines
1.8 KiB
Makefile
Raw Normal View History

1998-03-01 09:16:16 +01:00
# Postgres documentation makefile
# Thomas Lockhart
# Not yet generated from configure, so use relative path names for now...
1998-03-01 09:16:16 +01:00
PGDOCS= ..
SRCDIR= ../../src
TAR= tar
ZIP= gzip
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
1998-03-01 09:16:16 +01:00
# Pick up Makefile.global from the source area
1998-03-01 09:16:16 +01:00
# This is the only resource from the code source area and is optional
ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
include $(SRCDIR)/Makefile.global
1998-03-01 09:16:16 +01:00
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:
1998-03-01 09:16:16 +01:00
$(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:
$(MAKE) sources.tar.gz
1998-03-01 09:16:16 +01:00
sources.tar:
($(TAR) -cf $@ sgml graphics)
admin.tar:
1998-03-01 09:16:16 +01:00
$(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)
1998-03-01 09:16:16 +01:00
tutorial.tar:
1998-03-01 09:16:16 +01:00
$(MAKE) -C sgml clean
$(MAKE) -C sgml tutorial.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics clientserver.gif)
1998-03-01 09:16:16 +01:00
user.tar:
1998-03-01 09:16:16 +01:00
$(MAKE) -C sgml clean
$(MAKE) -C sgml user.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
1998-03-01 09:16:16 +01:00
man.tar:
$(MAKE) -C sgml man
$(TAR) -cf $@ -C sgml man1 manl
1998-03-01 09:16:16 +01:00
# Generic production rules
# Compressed file
%.gz: %
($(ZIP) -f $<)
1998-03-01 09:16:16 +01:00