Fixed a bug in makepanda - now, when using a nonstandard output directory, you don't have to rebuild every time.

This commit is contained in:
rdb 2009-07-05 14:55:19 +00:00
parent 165a57a38a
commit 7e4e883eca

View File

@ -50,8 +50,6 @@ CheckPandaSourceTree()
VERSION=ParsePandaVersion("dtool/PandaVersion.pp")
LoadDependencyCache()
def keyboardInterruptHandler(x,y):
exit("keyboard interrupt")
@ -138,12 +136,25 @@ def parseopts(args):
parseopts(sys.argv[1:])
# Now check if CFLAGS happens to be set
########################################################################
##
## Handle environment variables.
##
########################################################################
if (os.environ.has_key("CFLAGS")):
CFLAGS=os.environ["CFLAGS"]
if (os.environ.has_key("RPM_OPT_FLAGS")):
CFLAGS+=os.environ["RPM_OPT_FLAGS"]
########################################################################
##
## Load the dependency cache.
##
########################################################################
LoadDependencyCache()
########################################################################
##
## Locate various SDKs.