# $Id: Makefile,v 1.7 2003/02/09 22:01:05 h_xnan Exp $
# This is the makefile for the bytecode freezing of all modules which
# the main file depends on (last argument in importer rule)

include nan_definitions.mk

SRCDIR = ../modules

TARGETDIR = $(OCGDIR)/blender/bpython/frozen

PYFLAGS = -S -O

default: importer

install: importer

importer: 
	@[ -d $(TARGETDIR) ] || mkdir -p $(TARGETDIR)
	python $(PYFLAGS) freeze.py -d -x os -x pprint -x string -x copy -I $(SRCDIR) -o $(TARGETDIR) $(SRCDIR)/VRMLmain.py 
	$(MAKE) -C $(TARGETDIR)

clean:
	rm -f *.pyo

