2002-11-30 15:34:57 +00:00
|
|
|
# $Id$
|
|
|
|
# This is the makefile for the bytecode freezing of all modules which
|
|
|
|
# the main file depends on (last argument in importer rule)
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2003-01-26 02:42:22 +00:00
|
|
|
include nan_definitions.mk
|
|
|
|
|
2002-11-30 15:34:57 +00:00
|
|
|
SRCDIR = ../modules
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2003-01-26 02:42:22 +00:00
|
|
|
TARGETDIR = $(OCGDIR)/blender/bpython/frozen
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2003-05-24 20:04:37 +00:00
|
|
|
ifeq ($(FREE_WINDOWS),true)
|
|
|
|
export NAN_PYTHON_BINARY = python
|
|
|
|
endif
|
|
|
|
|
2003-03-21 21:50:47 +00:00
|
|
|
PYFLAGS=-S -O
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2002-11-30 15:34:57 +00:00
|
|
|
default: importer
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2003-02-17 16:51:16 +00:00
|
|
|
# fake all and debug targets
|
|
|
|
all debug: default
|
|
|
|
|
2002-11-30 15:34:57 +00:00
|
|
|
install: importer
|
2002-11-06 21:19:23 +00:00
|
|
|
|
2002-11-30 15:34:57 +00:00
|
|
|
importer:
|
2003-01-26 02:42:22 +00:00
|
|
|
@[ -d $(TARGETDIR) ] || mkdir -p $(TARGETDIR)
|
2003-03-21 21:50:47 +00:00
|
|
|
$(NAN_PYTHON_BINARY) $(PYFLAGS) freeze.py -d -x os -x pprint -x string -x copy -I $(SRCDIR) -o $(TARGETDIR) $(SRCDIR)/VRMLmain.py
|
2003-01-26 02:42:22 +00:00
|
|
|
$(MAKE) -C $(TARGETDIR)
|
2002-11-06 21:19:23 +00:00
|
|
|
|
2002-11-30 15:34:57 +00:00
|
|
|
clean:
|
2003-02-09 22:01:05 +00:00
|
|
|
rm -f *.pyo
|
|
|
|
|