~ubuntu-branches/ubuntu/utopic/python-omniorb/utopic

« back to all changes in this revision

Viewing changes to omniidl_be/dir.mk

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2008-03-26 22:17:38 UTC
  • Revision ID: james.westby@ubuntu.com-20080326221738-r20t9hmikbvcg2vh
Tags: upstream-3.2
ImportĀ upstreamĀ versionĀ 3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PYLIBROOT= $(EXPORT_TREE)/lib/python
 
2
PYLIBDIR = $(PYLIBROOT)/omniidl_be
 
3
INSTALLPYLIBDIR = $(INSTALLPYTHONDIR)/omniidl_be
 
4
 
 
5
ifeq ($(PYTHON),)
 
6
PYTHON = python
 
7
endif
 
8
 
 
9
FILES = __init__.py python.py
 
10
 
 
11
export:: $(FILES)
 
12
        @(dir="$(PYLIBDIR)"; \
 
13
          for file in $^; do \
 
14
            $(ExportFileToDir) \
 
15
          done; \
 
16
          cd $(PYLIBDIR); \
 
17
          $(PYTHON) -c "import compileall; compileall.compile_dir('.')"; \
 
18
         )
 
19
 
 
20
ifdef INSTALLTARGET
 
21
install:: $(FILES)
 
22
        @(dir="$(INSTALLPYLIBDIR)"; \
 
23
          for file in $^; do \
 
24
            $(ExportFileToDir) \
 
25
          done; \
 
26
          cd $(INSTALLPYLIBDIR); \
 
27
          $(PYTHON) -c "import compileall; compileall.compile_dir('.')"; \
 
28
         )
 
29
endif