# NEVER EDIT THIS FILE BY YOURSELF UNLESS IT'S NAMED "Makefile.in" !!!
# $Revision: 1.4 $ / $Date: 2004/12/27 14:56:22 $
SHELL = /bin/sh
srcdir = .
commondir = ${srcdir}/build/ReleaseManagement
UPDATE_COMMAND = ( mkdir -p ${srcdir}/build || echo "" ; cd ${srcdir}/build ; cvs -z3 -d:ext:$(USER)@cvs.ingeniweb.com:/isp/cvs/repository co ReleaseManagement )

# Process project Makefile (project.mk).
# It's project.mk.in customized to hold project information


# We first get the 'common' module where all utilities stand
# We will use that to generate the 'makefile' file.
default:  project.mk
	@echo
	@echo
	@echo "Now, please use one of the following commands:"
	@echo
	@echo "  make dist => Will perform a distribution of your product."
	@echo "               Use it only if you incremented your version number."
	@echo "				  It automatically makes 'doc' and 'website'."
	@echo 
	@echo "  make announce => Make your release public."
	@echo
	@echo
	@echo "  make website => Update website information."
	@echo "                  It automatically makes 'doc'."
	@echo
	@echo "  make doc => Update documentation about your product."
	@echo
	@echo "  make clean => Cleanup the 'build' directory."
	@echo
	@echo "  Other commands may exist... check the makefile for them."
	@echo
	@echo "You will find additional documentation in the 'common' directory."
	@echo

commondir: force
	@echo "Refreshing the project's shared files."
	@echo "You will be asked for $(USER)@cvs.ingeniweb.com's password."
	@${UPDATE_COMMAND}

project.mk: commondir Makefile
	@echo "Generating the project's specific makefile (project.mk)."
	@python ${commondir}/MakefileTool.py project.mk < ${commondir}/project.mk.in > ${srcdir}/project.mk
#	@$(MAKE) -f project.mk consistancy

$(commondir)/Makefile.in: commondir

Makefile: $(commondir)/Makefile.in
	@echo "Updating current Makefile"
	@cp ${commondir}/Makefile.in ${srcdir}/Makefile

dist: project.mk force
	@$(MAKE) -f project.mk $@

announce: project.mk announce
	@$(MAKE) -f project.mk $@

clean: project.mk force
	@$(MAKE) -f project.mk $@

website: project.mk force
	@$(MAKE) -f project.mk $@

doc: project.mk force
	@$(MAKE) -f project.mk $@

test: project.mk force
	@$(MAKE) -f project.mk $@

upload: project.mk force
	@$(MAKE) -f project.mk $@

targz: project.mk force
	@$(MAKE) -f project.mk $@

tagging: project.mk force
	@$(MAKE) -f project.mk $@

force: ;
