# sample makefile
CC=cc

targets: default

# this target creates a bin-directory
bindir:
	mkdir -p bin/@GAPARCH@


default: bindir src/Makefile.in
	echo "s/@DATE@/`date`/g" >sedfile
	sed -f sedfile src/Makefile.in >src/Makefile
	(cd src; make)
	mv src/ace bin/@GAPARCH@/ace

clean:	
	rm -rf bin sedfile src/Makefile Makefile

# use this target only if you want to build the manual from scratch.
builddoc:
	(cd doc;./make_doc)
	if test ! -d htm;  then mkdir htm;  fi
	../../etc/convert.pl -c -i -t -n ace doc htm
	(cd doc;rm manual.{toc,blg,lab,log,aux,idx,ind})

otherdoc:
	(cd standalone-doc;latex ace3001;bibtex ace3001;latex ace3001;latex ace3001)
	(cd standalone-doc;dvips ace3001 -o)
	(cd standalone-doc;rm ace3001.{toc,blg,log,aux})

