# $Id: Makefile,v 1.12 2002/09/08 17:48:05 cepek Exp $
#
export GAMA-EDITION=0.03
export GAMA-UPDATED=2002-09-08
#
# 0.03 2002-09-08
#      - new syntax for images in pdftex in Woody (\pdfximage)
#      - term "free networks" is used instead of "local networks" in doc 
#
# 0.02 2002-05-25 
#      - removed separate chapters "xml input" and "adjustment"
#      - "XML input data format" revised by Chuck Ghilani
#
# 0.01 2002-01-05 
#      - replaced texi2html by makeinfo for gama-xml-input and
#        gama-net-adjustment (because of problems with makeinfo macroes)
#
#
DEPENDS = $(shell find . -name "*.texinfo" | grep -v .ed.texinfo ) \
          $(shell find . -name Makefile ) \
          $(shell find . -name "*.ed" ) \
          $(shell find . -name README ) \
          $(shell find . -name "*.eps") \
          $(shell find . -name "*.png") \
          $(shell find . -name "*.txt" | grep -v gama.txt )

all: gama.info

gama.info : $(DEPENDS)
	echo "@set GAMA-EDITION $(GAMA-EDITION)" >   doc/version.texinfo
	echo "@set GAMA-UPDATED $(GAMA-UPDATED)" >>  doc/version.texinfo
	@if [ ! -d texinfo ]; then mkdir texinfo; fi
	make clean
	(cd doc; make)
	makeinfo  gama.texinfo
#	texi2html -monolithic gama.texinfo
#	ed gama.html < gama-fix-texi2html.ed
	makeinfo --html --no-split gama.texinfo #  -o gama.html  

clean:
	rm -f *.auc *.cp *.dvi *.fn *.ky *.log *.pdf *.pg *.tp *.toc *.vr
	rm -f *.aux *.ps  *.pdf *.txt *~
	(cd doc; make clean)

archive:
	@if [ ! -d texinfo ]; then mkdir texinfo; fi
	tar czf  texinfo/gama-texinfo-$(GAMA-EDITION).tar.gz $(DEPENDS)













