1998-03-01 21:44:37 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
# Postgres documentation makefile
|
|
|
|
# Thomas Lockhart
|
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
2000-08-31 18:12:35 +02:00
|
|
|
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.19 2000/08/31 16:09:20 petere Exp $
|
1998-03-01 21:44:37 +01:00
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------------
|
1998-03-01 09:18:09 +01:00
|
|
|
|
2000-08-31 18:12:35 +02:00
|
|
|
# Pick up Makefile.global from the source area
|
|
|
|
# This is the only resource from the code source area and is optional.
|
|
|
|
# Actually, we want this to get Makefile.custom - thomas 1998-03-01
|
|
|
|
subdir = doc/src/sgml
|
|
|
|
top_builddir = ../../..
|
|
|
|
-include $(top_builddir)/src/Makefile.global
|
|
|
|
|
1998-03-01 21:44:37 +01:00
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
# This is where the default stylesheets appear on my linux system.
|
1998-03-01 21:44:37 +01:00
|
|
|
# Probably no need to change this; rather, put definitions
|
|
|
|
# for HSTYLE and PSTYLE and/or for HDSL and PDSL
|
|
|
|
# in Makefile.custom in your code src directory.
|
1999-07-06 19:19:42 +02:00
|
|
|
#HSTYLE=/usr/lib/sgml/stylesheets/nwalsh-modular/html
|
|
|
|
#PSTYLE=/usr/lib/sgml/stylesheets/nwalsh-modular/print
|
1999-08-06 15:46:17 +02:00
|
|
|
# This is where the production stylesheets appear on postgresql.org
|
1998-03-01 21:44:37 +01:00
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
HSTYLE= /home/users/t/thomas/db118.d/docbook/html
|
|
|
|
PSTYLE= /home/users/t/thomas/db118.d/docbook/print
|
1998-03-01 21:44:37 +01:00
|
|
|
|
|
|
|
HDSL=$(HSTYLE)/docbook.dsl
|
|
|
|
PDSL=$(PSTYLE)/docbook.dsl
|
|
|
|
|
1998-07-29 08:29:04 +02:00
|
|
|
# Options for DocBook style sheets
|
|
|
|
|
1998-09-25 15:41:25 +02:00
|
|
|
DBOPTS= -D ref -D ../graphics
|
1998-05-13 07:33:32 +02:00
|
|
|
#DBOPTS+= -V %no-split-output% -V %no-make-index%
|
1998-07-29 08:29:04 +02:00
|
|
|
# use-id-as-filename picks up the "Id=" fields to use as file names.
|
|
|
|
# If this is omitted then file names are generic "c01.htm"
|
|
|
|
# as in v6.3 documentation. Yuck.
|
|
|
|
DBOPTS+= -V %use-id-as-filename%
|
1998-03-01 21:44:37 +01:00
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
# docbook2man generates man pages from docbook refentry source code.
|
|
|
|
# This is where the (patched) docbook2man perl scripts reside on hub.org.
|
|
|
|
|
|
|
|
D2MDIR= /home/users/t/thomas/d2x/docbook2man
|
|
|
|
D2MSCRIPT= $(D2MDIR)/docbook2man-spec.pl
|
|
|
|
|
1998-03-01 21:44:37 +01:00
|
|
|
TAR= tar
|
|
|
|
|
|
|
|
# Hmm, made this optional but jade _really_ doesn't like them missing
|
|
|
|
# - thomas 1998-03-01
|
|
|
|
ifneq ($(HDSL), )
|
|
|
|
HTMLOPTS= -d $(HDSL)
|
|
|
|
endif
|
|
|
|
ifneq ($(PDSL), )
|
|
|
|
PRINTOPTS= -d $(PDSL)
|
|
|
|
endif
|
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
vpath %.sgml ./ref
|
|
|
|
|
1999-07-06 19:19:42 +02:00
|
|
|
MANSOURCES= $(wildcard ref/*.sgml)
|
|
|
|
|
2000-05-02 22:02:03 +02:00
|
|
|
APPLICATIONS= createdb.sgml createlang.sgml createuser.sgml \
|
|
|
|
dropdb.sgml droplang.sgml dropuser.sgml \
|
|
|
|
ecpg-ref.sgml \
|
1999-07-06 19:19:42 +02:00
|
|
|
initdb.sgml initlocation.sgml \
|
1999-08-06 15:46:17 +02:00
|
|
|
ipcclean.sgml \
|
1999-07-06 19:19:42 +02:00
|
|
|
pg_dump.sgml \
|
|
|
|
pg_dumpall.sgml \
|
2000-05-02 22:02:03 +02:00
|
|
|
pg_passwd.sgml \
|
1999-07-06 19:19:42 +02:00
|
|
|
pg_upgrade.sgml \
|
|
|
|
pgaccess-ref.sgml \
|
|
|
|
pgadmin-ref.sgml \
|
2000-08-26 15:08:16 +02:00
|
|
|
pg-config-ref.sgml \
|
2000-05-02 22:02:03 +02:00
|
|
|
pgctl-ref.sgml \
|
1999-08-06 15:46:17 +02:00
|
|
|
pgtclsh.sgml \
|
|
|
|
pgtksh.sgml \
|
1999-07-06 19:19:42 +02:00
|
|
|
postgres-ref.sgml \
|
|
|
|
postmaster.sgml \
|
|
|
|
psql-ref.sgml \
|
|
|
|
vacuumdb.sgml
|
|
|
|
|
2000-01-14 23:11:38 +01:00
|
|
|
COMMANDS= abort.sgml alter_group.sgml alter_table.sgml alter_user.sgml \
|
1999-07-06 19:19:42 +02:00
|
|
|
begin.sgml \
|
2000-05-02 22:02:03 +02:00
|
|
|
close.sgml cluster.sgml comment.sgml commit.sgml copy.sgml \
|
|
|
|
create_aggregate.sgml create_constraint.sgml create_database.sgml \
|
|
|
|
create_function.sgml create_group.sgml \
|
2000-01-14 23:11:38 +01:00
|
|
|
create_index.sgml \
|
1999-07-06 19:19:42 +02:00
|
|
|
create_language.sgml create_operator.sgml create_rule.sgml create_sequence.sgml \
|
|
|
|
create_table.sgml create_table_as.sgml create_trigger.sgml create_type.sgml \
|
|
|
|
create_user.sgml create_view.sgml \
|
|
|
|
declare.sgml delete.sgml \
|
2000-01-14 23:11:38 +01:00
|
|
|
drop_aggregate.sgml drop_database.sgml drop_function.sgml drop_group.sgml \
|
|
|
|
drop_index.sgml \
|
1999-07-06 19:19:42 +02:00
|
|
|
drop_language.sgml drop_operator.sgml drop_rule.sgml drop_sequence.sgml \
|
|
|
|
drop_table.sgml drop_trigger.sgml drop_type.sgml drop_user.sgml drop_view.sgml \
|
2000-05-02 22:02:03 +02:00
|
|
|
end.sgml explain.sgml fetch.sgml grant.sgml \
|
1999-07-06 19:19:42 +02:00
|
|
|
insert.sgml listen.sgml load.sgml lock.sgml move.sgml \
|
|
|
|
notify.sgml \
|
2000-05-02 22:02:03 +02:00
|
|
|
reindex.sgml reset.sgml revoke.sgml rollback.sgml \
|
2000-06-18 23:24:54 +02:00
|
|
|
select.sgml select_into.sgml set.sgml set_constraints.sgml set_transaction.sgml show.sgml \
|
2000-05-02 22:02:03 +02:00
|
|
|
truncate.sgml unlisten.sgml update.sgml vacuum.sgml
|
1999-07-06 19:19:42 +02:00
|
|
|
|
|
|
|
FUNCTIONS= current_date.sgml current_time.sgml current_timestamp.sgml current_user.sgml
|
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
#APPSOURCES= $(addprefix ref/, $(APPLICATIONS))
|
|
|
|
#SQLSOURCES= $(addprefix ref/, $(COMMANDS))
|
|
|
|
APPSOURCES= $(APPLICATIONS)
|
|
|
|
SQLSOURCES= $(COMMANDS)
|
|
|
|
XAPPTARGETS= $(APPLICATIONS:.sgml=.1)
|
|
|
|
APPTARGETS= $(XAPPTARGETS:-ref.1=.1)
|
|
|
|
XSQLTARGETS= $(COMMANDS:.sgml=.l)
|
|
|
|
SQLTARGETS= $(XSQLTARGETS:-ref.l=.l)
|
1999-07-06 19:19:42 +02:00
|
|
|
|
1998-03-01 21:44:37 +01:00
|
|
|
.PRECIOUS: postgres.tex postgres.dvi
|
|
|
|
.PHONY: install all clean distclean
|
|
|
|
|
2000-07-16 16:50:44 +02:00
|
|
|
install:
|
1998-03-01 21:44:37 +01:00
|
|
|
|
2000-07-16 16:50:44 +02:00
|
|
|
all:
|
1998-03-01 21:44:37 +01:00
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
man:
|
|
|
|
$(MAKE) man1 manl
|
|
|
|
($(RM) -r *.1 *.l man1 manl)
|
|
|
|
$(MAKE) man1 manl
|
|
|
|
|
|
|
|
manpage.refs:
|
|
|
|
$(MAKE) man
|
1999-07-06 19:19:42 +02:00
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
man1: $(APPTARGETS) manpage.refs
|
1999-07-06 19:19:42 +02:00
|
|
|
$(RM) -rf man1
|
|
|
|
if [ ! -d man1 ]; then mkdir man1; fi
|
1999-08-06 15:46:17 +02:00
|
|
|
cp *.1 man1/
|
1999-07-06 19:19:42 +02:00
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
manl: $(SQLTARGETS) manpage.refs
|
1999-07-06 19:19:42 +02:00
|
|
|
$(RM) -rf manl/*
|
|
|
|
if [ ! -d manl ]; then mkdir manl; fi
|
1999-08-06 15:46:17 +02:00
|
|
|
cp *.l manl/
|
1999-07-06 19:19:42 +02:00
|
|
|
|
2000-07-16 16:50:44 +02:00
|
|
|
clean:
|
1999-08-06 15:46:17 +02:00
|
|
|
(rm -rf HTML.manifest *.html *.htm *.1 *.l man1 manl manpage*)
|
1998-03-01 21:44:37 +01:00
|
|
|
|
2000-07-16 16:50:44 +02:00
|
|
|
distclean:
|
1998-03-01 21:44:37 +01:00
|
|
|
$(MAKE) clean
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generic production rules
|
|
|
|
#
|
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
%.1: %-ref.sgml
|
1999-08-08 06:18:29 +02:00
|
|
|
nsgmls $(NSGMLS_FLAGS) refentry.sgml $< \
|
|
|
|
| sgmlspl $(D2MSCRIPT) --lowercase --blockformat --section 1
|
1999-08-06 15:46:17 +02:00
|
|
|
|
|
|
|
%.1: %.sgml
|
1999-08-08 06:18:29 +02:00
|
|
|
nsgmls $(NSGMLS_FLAGS) refentry.sgml $< \
|
|
|
|
| sgmlspl $(D2MSCRIPT) --lowercase --blockformat --section 1
|
1998-03-01 21:44:37 +01:00
|
|
|
|
1999-08-06 15:46:17 +02:00
|
|
|
%.l: %.sgml
|
1999-08-08 06:18:29 +02:00
|
|
|
nsgmls $(NSGMLS_FLAGS) refentry.sgml $< \
|
|
|
|
| sgmlspl $(D2MSCRIPT) --lowercase --blockformat --section l
|
1998-03-01 21:44:37 +01:00
|
|
|
|
|
|
|
# HTML
|
|
|
|
# Include some softlinks to the generic default file names
|
|
|
|
|
|
|
|
%.html: %.sgml #$(HDSL)
|
|
|
|
(rm -rf *.htm)
|
1998-05-13 07:33:32 +02:00
|
|
|
jade $(DBOPTS) $(HTMLOPTS) -t sgml $<
|
1998-07-29 08:29:04 +02:00
|
|
|
(ln -sf $*.htm index.html)
|
|
|
|
(ln -sf $*.htm $*.html)
|
1998-03-01 21:44:37 +01:00
|
|
|
|
|
|
|
# RTF to allow minor editing for hardcopy
|
|
|
|
# This is used for v6.3 docs
|
|
|
|
|
|
|
|
%.rtf: %.sgml #$(PDSL)
|
|
|
|
jade $(DBOPTS) $(PRINTOPTS) -t rtf $<
|
|
|
|
|
|
|
|
# TeX and DVI
|
|
|
|
|
|
|
|
%.tex: %.sgml #$(PDSL)
|
|
|
|
jade $(DBOPTS) $(PRINTOPTS) -t tex $<
|
|
|
|
|
|
|
|
%.dvi: %.tex
|
|
|
|
jadetex $<
|
|
|
|
jadetex $<
|
|
|
|
|
|
|
|
# Postscript from TeX
|
|
|
|
|
|
|
|
%.ps: %.dvi
|
|
|
|
dvips -o $@ $<
|
|
|
|
|
|
|
|
# Graphics
|
|
|
|
|
|
|
|
%.gif:
|
1998-10-30 20:37:19 +01:00
|
|
|
cp -p ../graphics/$@ .
|
1998-03-01 09:18:09 +01:00
|
|
|
|
2000-07-21 02:44:13 +02:00
|
|
|
|
|
|
|
# Generation of the INSTALL text file. Not fully automated, but better
|
|
|
|
# than nothing.
|
|
|
|
.PHONY: INSTALL
|
|
|
|
INSTALL: INSTALL.html
|
|
|
|
@echo "|";\
|
|
|
|
echo "| You should now take \`$<', save it as a text file in Netscape,";\
|
|
|
|
echo "| and put it in place of the existing \`INSTALL' file.";\
|
|
|
|
echo "|"
|
|
|
|
@rm -f tempfile.html tempfile.sgml
|
|
|
|
|
|
|
|
INSTALL.html: tempfile.html
|
|
|
|
sed -e 's/Chapter 1. *//g' < $< > $@
|
|
|
|
|
|
|
|
tempfile.html: tempfile.sgml
|
|
|
|
jade -d $(HDSL) -V nochunks -t sgml $< > $@
|
|
|
|
|
|
|
|
tempfile.sgml: standalone-install.sgml installation.sgml
|
|
|
|
cat $+ > $@
|