#
# $Id: Makefile,v 1.9 2009/08/12 14:36:28 thomasw Exp $
#
# General build makefile.  (Doxygen)

PROJECT ?= seamax
EXPDIR ?= /usr/local/share/${PROJECT}

CP ?=     /bin/cp
RM ?=     /bin/rm 
MKDIR ?=  /bin/mkdir
DOXY ?=   /usr/bin/doxygen


## ============================================================================
all: objs

dox: rmdox
	@$(DOXY) PublicDoxCfg
	@$(CP) images/*.jpg html/
	@$(CP) images/*.gif html/
	@$(CP) related/*.pdf html/
	@$(RM) -rf PrivateDoxCfg

rmdox:
	@$(RM) -rf html

objs:
	@echo " *Dox prepared"
	@echo

install:
	@echo " *Installing $(PROJECT) dox to $(EXPDIR)/dox"
	@$(MKDIR) -p ${EXPDIR}/dox
	@$(CP) -r ./html/* ${EXPDIR}/dox
	@echo "   Done installing dox."
	@echo

uninstall:
	@echo " *Uninstalling $(PROJECT) dox from $(EXPDIR)/dox"
	@$(RM) -rf ${EXPDIR}/dox
	@echo "   Dox removed."
	@echo

clean:
	@echo " *Dox will not be cleaned." 
	@echo
