#
# Note: this file should *not* be turned into an automake version.  It's
# intended to be a master makefile which can *call* automake.  The version
# numbers, and C library version here should be set by hand.
#

CVERSION=glibc2
MAJOR=0
MINOR=86
PICO=5

LAST_MAJOR=0
LAST_MINOR=86
LAST_PICO=0

#
# this is here just to save some typing
#
reconfig:
	autoheader && automake -i && autoconf

# THIS IS ONLY FOR CORE TEAM MEMBERS.  IT WON'T WORK IF YOU'RE NOT A CORE
# TEAM MEMBER.  DON'T BOTHER
#
# do this before making a new release
#
release::
	./scripts/genlog $(LAST_MAJOR) $(LAST_MINOR) $(LAST_PICO)
	cat ./terror/RELEASE_INSTRUCTIONS
	
# THIS IS ONLY FOR CORE TEAM MEMBERS.  IT WON'T WORK IF YOU'RE NOT A CORE
# TEAM MEMBER.  DON'T BOTHER
#
# automatically build and upload binaries and RPM's
# (requires .netrc file entry for ftp.hungry.com) 
#
binaries::
	@echo "This script should only be run by lesstif core team members"
	@echo ""
	@echo "IT WON'T WORK IF YOU'RE NOT ON THE CORE TEAM"
	@echo "IT WON'T WORK IF YOU'RE NOT ON THE CORE TEAM"
	@echo "IT WON'T WORK IF YOU'RE NOT ON THE CORE TEAM"
	@echo ""
	@echo "Got it?"
	@echo "If you are not on the core team hit ^C now!" && sleep 10
	./scripts/mkrelease $(CVERSION) && ./scripts/ftprelease $(CVERSION) && ./scripts/mkrpms 

update:
	cvs update
	autoheader && automake -i && autoconf && ./configure
	(cd test; autoheader && automake -i && autoconf && ./configure)
	(cd Xlt; autoheader && automake -i && autoconf && ./configure)




