#  Bug getting hardcopy on debian woody: 
#  This is pdfTeX, Version 3.14159-13d (Web2C 7.3.1) (INITEX)
#    (Fatal format file error; I'm stymied)
#  (might call itself jadeTeX/pdfjadetex/pdfTeX)
#
#  To fix as root run:    
#       fmtutil --cnffile /etc/texmf/jadetex/fmtutil.cnf --all
#
# Here is how much of TeX's memory you need:
# 43896 strings out of 43957
# 322588 string characters out of 340047
# 360126 words of memory out of 1085001
# 42162 multiletter control sequences out of 10000+32500
# 103237 words of font info for 164 fonts, out of 500000 for 1000
# 14 hyphenation exceptions out of 1000
# 27i,12n,44p,392b,1905s stack positions out of 1500i,500n,1500p,200000b,5000s
# 20240 PDF objects out of 300000
# 14462 named destinations out of 131072
#
#  GENERALLY
#   Ensure that /etc/sgml/catalog has correct entries ...
#

BASE=xtal
WEBSRC=$(BASE)web.sgml
PRTSRC=$(BASE)book.sgml
PDF=$(BASE).pdf
DEPS= $(BASE).sgml xtal.dsl htmlsymbols.ent tablestyles.ent
PARSER= --parser /usr/bin/openjade

all: html

html:   $(WEBSRC) $(DEPS)
	docbook2html -o ./html/ -d ./xtal.dsl\#html $(WEBSRC)

tex:   $(PRTSRC) $(DEPS)
	docbook2tex $(PARSER) -o ./tex/ -d ./xtal.dsl\#print $(PRTSRC) 

pdf:   tex
	$(MAKE) -C ./tex

pdf1:   tex
	$(MAKE) -C ./tex pdf1

rtf:   $(PRTSRC) $(DEPS)
	docbook2rtf -o ./rtf/ -d ./xtal.dsl\#print $(PRTSRC) 

txt:   $(PRTSRC) $(DEPS)
	docbook2txt -o ./txt/ -d ./xtal.dsl\#print $(PRTSRC) 

ps:   $(PRTSRC) $(DEPS)
	docbook2ps -o ./ps/   -d ./xtal.dsl\#print $(PRTSRC) 


