PYLIBROOT= $(EXPORT_TREE)/lib/python PYLIBDIR = $(PYLIBROOT) INSTALLPYLIBDIR = $(INSTALLPYTHONDIR) SUBDIRS = omniORB COS all:: @$(MakeSubdirs) export:: @$(MakeSubdirs) ifdef INSTALLTARGET install:: @$(MakeSubdirs) endif FILES = CORBA.py PortableServer.py PortableServer__POA.py export:: $(FILES) @(dir="$(PYLIBDIR)"; \ for file in $^; do \ $(ExportFileToDir) \ done; \ cd $(PYLIBDIR); \ $(PYTHON) -c "import compileall; compileall.compile_dir('.',0)"; \ ) ifdef INSTALLTARGET install:: $(FILES) @(dir="$(INSTALLPYLIBDIR)"; \ for file in $^; do \ $(ExportFileToDir) \ done; \ cd $(INSTALLPYLIBDIR); \ $(PYTHON) -c "import compileall; compileall.compile_dir('.',0)"; \ ) endif