[Bio] / ReleaseTools / standard.mk Repository:
ViewVC logotype

Diff of /ReleaseTools/standard.mk

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4, Tue Oct 5 20:02:31 2004 UTC revision 1.5, Fri Nov 19 18:10:34 2004 UTC
# Line 29  Line 29 
29  #BINSCRIPTS:     List of scripts to be copied to bin verbatim.  #BINSCRIPTS:     List of scripts to be copied to bin verbatim.
30  #  #
31  #  #
32  #SCHEMATOOLS := file.st, etc.  List of python files defining input to schema  #SCHEMATOOLS := file.py, etc.  List of python files defining input to schema
33  #               tools.  #               tools.
34    
35    
# Line 40  Line 40 
40  ########################################################################  ########################################################################
41    
42    
43  LIBPYFILES := $(filter-out $(BINPYSCRIPTS), $(wildcard *.py))  LIBPYFILES := $(filter-out $(BINPYSCRIPTS) $(SCHEMATOOLS), $(wildcard *.py))
44    
45    
46    
# Line 57  Line 57 
57    
58  lib:    $(foreach var, $(LIBPYFILES), $(libdir)/$(PKGNAME)/$(var))  lib:    $(foreach var, $(LIBPYFILES), $(libdir)/$(PKGNAME)/$(var))
59    
60  schematools: $(foreach var, $(subst .st,,$(SCHEMATOOLS)), $(libdir)/$(PKGNAME)Gen/$(var).py) $(foreach var, $(subst .st,,$(SCHEMATOOLS)), $(libdir)/$(PKGNAME)Gen/$(var).sql) $(foreach var, $(subst .st,,$(SCHEMATOOLS)), $(libdir)/$(PKGNAME)Gen/$(var)DbiHandler.py)  schematools: stDeclFiles stGeneratedFiles
61    
62    stDeclFiles: $(foreach var, $(SCHEMATOOLS), $(libdir)/$(PKGNAME)/$(var))
63    
64    stGeneratedFiles: $(foreach var, $(subst .py,,$(SCHEMATOOLS)), $(libdir)/$(PKGNAME)Gen/$(var)_st.py) $(foreach var, $(subst .py,,$(SCHEMATOOLS)), $(libdir)/$(PKGNAME)Gen/$(var).sql) $(foreach var, $(subst .py,,$(SCHEMATOOLS)), $(libdir)/$(PKGNAME)Gen/$(var)DbiHandler.py)
65    
66  test:  test:
67    
# Line 70  Line 74 
74  ##  ##
75  # lib related  # lib related
76  ##  ##
77    $(libdir)/$(PKGNAME)/%.py: $(TOPDIR)/$(PKGNAME)/%.py $(libdir)/$(PKGNAME)/__init__.py
78            cp -p  $< $@
79    
80    $(libdir)/$(PKGNAME)/__init__.py: $(TOPDIR)/$(PKGNAME)/__init__.py
81            cp -p  $< $@
82    
83  # verbatim copy from sourcedir to libdir, e.g., py (distutils someday...)  # verbatim copy from sourcedir to libdir, e.g., py (distutils someday...)
84    # keep this overly generic one below the more specific py, above.
85  $(libdir)/$(PKGNAME)/%: $(TOPDIR)/$(PKGNAME)/%  $(libdir)/$(PKGNAME)/%: $(TOPDIR)/$(PKGNAME)/%
86          cp -p  $< $@          cp -p  $< $@
87    
88  # generate .py from schematools description of class. (Kah related)  # generate .py from schematools description of class. (Kah related)
89  $(libdir)/$(PKGNAME)Gen/%.py: $(TOPDIR)/$(PKGNAME)/%.st  $(libdir)/$(PKGNAME)Gen/%_st.py: $(TOPDIR)/$(PKGNAME)/%.py
90          cd $(libdir)/$(PKGNAME); generatePy $< > $@          cd $(libdir)/$(PKGNAME); generatePy $< > $@
91    
92  # generate .sql from schematools description of class. (Kah related)  # generate .sql from schematools description of class. (Kah related)
93  $(libdir)/$(PKGNAME)Gen/%.sql: $(TOPDIR)/$(PKGNAME)/%.st  $(libdir)/$(PKGNAME)Gen/%.sql: $(TOPDIR)/$(PKGNAME)/%.py
94          cd $(libdir)/$(PKGNAME); generateDb $< > $@          cd $(libdir)/$(PKGNAME); generateDb $< > $@
95    
96  # generate object/relational converters from schematools  # generate object/relational converters from schematools
97  # description of class. (Kah related)  # description of class. (Kah related)
98  $(libdir)/$(PKGNAME)Gen/%DbiHandler.py: $(TOPDIR)/$(PKGNAME)/%.st  $(libdir)/$(PKGNAME)Gen/%DbiHandler.py: $(TOPDIR)/$(PKGNAME)/%.py
99          cd $(libdir)/$(PKGNAME); generateDbiHandler $< > $@          cd $(libdir)/$(PKGNAME); generateDbiHandler $< > $@
100    
101  ##  ##

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3