# General Makefile for Candis
# This still depends on having the local install paths correct --
# no general install locations -- needs fixing.
#
# Define where you would like your html documentation to live.
HTML-DIR = ~/www/software/candis/html

common :
	cd Clang; make
	cd Python; make
	cd Go; make
	cd doc; make

html :
	-cd Clang; make html
	-cd Python; make html
	-cd Go; make html
	-cd doc; make

install :
	-cd Clang; make install
	-cd Python; make install
	-cd Go; make install

install-html :
	-cd Clang; make install-html
	-cd Python; make install-html
	-cd Go; make install-html
	(cd ${HTML-DIR}; ./makedex.sh)

clean :
	cd Clang; make clean
	cd Python; make clean
	cd Go; make clean
	cd doc; make clean

dist :
	cp doc/candis.html doc/candis-logo.png ~/public_html/software/candis
	cp READ_ME ~/public_html/software/candis/CANDIS_README
	cp RELEASE_NOTES ~/public_html/software/candis/CANDIS_RELEASE_NOTES
	cd ..; tar cvzf - candis > ~/public_html/software/candis/candis.tgz
