# ----------------------------------------------------------------------------
# - Makefile                                                                 -
# - aleph documentation - volume 0 makefile                                  -
# ----------------------------------------------------------------------------
# - This program is  free software;  you can  redistribute it and/or  modify -
# - it provided that this copyright notice is kept intact.                   -
# -                                                                          -
# - This  program  is  distributed in the hope  that it  will be useful, but -
# - without  any   warranty;  without  even   the   implied    warranty   of -
# - merchantability  or fitness for a particular purpose. In not event shall -
# - the copyright holder be  liable for  any direct, indirect, incidental or -
# - special damages arising in any way out of the use of this software.      -
# ----------------------------------------------------------------------------
# - copyright (c) 1999-2003 amaury darsch                                    -
# ----------------------------------------------------------------------------

TOPDIR		= ../..
MAKDIR		= $(TOPDIR)/cnf/mak
CONFFILE	= $(MAKDIR)/aleph-conf.mak
DOCSFILE	= $(MAKDIR)/aleph-docs.mak
include		  $(CONFFILE)

# ----------------------------------------------------------------------------
# project configurationn                                                     -
# ----------------------------------------------------------------------------

DSTDIR		= $(BLDDST)/tex/vol-0
MANUAL		= vol-0

# ----------------------------------------------------------------------------
# - project rules                                                            -
# ----------------------------------------------------------------------------

# rule: all
# this rule is the default rule which call the build rule

all: build

# include: aleph-docs.mak
# this rule includes the documentation rules

include $(DOCSFILE)

# rule: build
# build the postscript manual

build: epsman pdfman
	@$(MKDIR) $(BLDDOC)
	@$(CP)    vol-0-A4.ps  $(BLDDOC)
	@$(CP)    vol-0-LT.ps  $(BLDDOC)
	@$(CP)    vol-0-A4.pdf $(BLDDOC)
	@$(CP)    vol-0-LT.pdf $(BLDDOC)
.PHONY: build

# rule: distri
# this rule install the vol-0 distribution files

distri:
	@$(MKDIR) $(DSTDIR)
	@$(CP)    Makefile  $(DSTDIR)
	@$(CP)    *.tex     $(DSTDIR)
.PHONY: distri
