mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-12 09:27:04 +08:00
rather than making index.html a symlink to the autogenerated name. Fixes fatal problems with tar programs that don't handle symlinks very well (MacOS X). (The names user.html, admin.html, etc. are still available as make targets, but they aren't packaged anymore.) Use the manifest file that the stylesheets generate as the file list for packaging. Put graphics in the right place while building, not while packaging, so you can actually look at them after building.
44 lines
905 B
Makefile
44 lines
905 B
Makefile
# Postgres documentation makefile
|
|
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.22 2001/09/18 12:08:26 petere Exp $
|
|
|
|
subdir = doc/src
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
ZIPSUFFIX= gz
|
|
|
|
BOOKS = admin developer reference programmer tutorial user postgres
|
|
|
|
TARGETS= $(BOOKS:%=%.tar.$(ZIPSUFFIX))
|
|
|
|
.PRECIOUS:
|
|
.PHONY: install all sources clean distclean
|
|
|
|
install:
|
|
$(MAKE) all
|
|
(mv -f *.$(ZIPSUFFIX) ..)
|
|
|
|
clean:
|
|
$(MAKE) -C sgml clean
|
|
|
|
distclean:
|
|
$(MAKE) -C sgml distclean
|
|
|
|
all: $(TARGETS)
|
|
|
|
sources:
|
|
$(MAKE) sources.tar.$(ZIPSUFFIX)
|
|
|
|
sources.tar:
|
|
$(TAR) -cf $@ sgml graphics
|
|
|
|
$(addsuffix .tar, $(BOOKS)):
|
|
$(MAKE) -C sgml clean
|
|
$(MAKE) -C sgml $(basename $@).html
|
|
$(MAKE) -C sgml $(basename $@).html JADEFLAGS='-V html-manifest'
|
|
cd sgml && $(TAR) -c -f ../$@ -T HTML.manifest *.gif *.css
|
|
|
|
man.tar:
|
|
$(MAKE) -C sgml man
|
|
$(TAR) -c -f $@ -C sgml man1 man$(sqlmansect_dummy)
|