[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.9, Fri Mar 11 22:26:14 2005 UTC revision 1.15, Fri Apr 22 16:21:44 2005 UTC
# Line 22  Line 22 
22  # Document macros users define in their package level makefiles here:  # Document macros users define in their package level makefiles here:
23  ########################################################################  ########################################################################
24  #  #
25    # WEBPAGES     : list of stuff to copy to $(cgidir)/Html.  built in bin: step
26    #
27    # PYTHON_OPEN_CGI : list of py scripts to install as cgi scripts in bin step
28    #
29  #BINPYSCRIPTS := script1.py etc.  List of py scripts to install in bin.  #BINPYSCRIPTS := script1.py etc.  List of py scripts to install in bin.
30  #                Installed as script1, not script1.py.  Filtered out of  #                Installed as script1, not script1.py.  Filtered out of
31  #                python library list (LIBPYFILES)  #                python library list (LIBPYFILES)
# Line 45  Line 49 
49  ########################################################################  ########################################################################
50    
51    
52  LIBPYFILES := $(filter-out $(BINPYSCRIPTS) $(SCHEMATOOLS), $(wildcard *.py))  LIBPYFILES := $(filter-out $(BINPYSCRIPTS) $(PYTHON_OPEN_CGI) $(SCHEMATOOLS), $(wildcard *.py))
   
53    
54    
55  ########################################################################  ########################################################################
# Line 58  Line 61 
61    
62  all: schematools lib bin  all: schematools lib bin
63    
64  bin:    $(foreach var, $(BINPYSCRIPTS), $(subst .py,,$(bindir)/$(var))) $(foreach var, $(BINSHSCRIPTS), $(subst .sh,,$(bindir)/$(var))) $(foreach var, $(BINSCRIPTS), $(bindir)/$(var))  bin:    $(foreach var, $(BINPYSCRIPTS), $(subst .py,,$(bindir)/$(var))) $(foreach var, $(BINSHSCRIPTS), $(subst .sh,,$(bindir)/$(var))) $(foreach var, $(BINSCRIPTS), $(bindir)/$(var))  opencgi webpages
65    
66  lib:    $(foreach var, $(LIBPYFILES), $(libdir)/$(PKGNAME)/$(var))  lib:    $(foreach var, $(LIBPYFILES), $(libdir)/$(PKGNAME)/$(var))
67    
68    opencgi: $(foreach var, $(PYTHON_OPEN_CGI), $(subst .py,.cgi, $(cgidir)/$(var)))
69    
70    webpages: $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var))
71    
72  schematools: stDeclFiles stGeneratedFiles  schematools: stDeclFiles stGeneratedFiles
73    
74  stDeclFiles: $(foreach var, $(SCHEMATOOLS), $(libdir)/$(PKGNAME)/$(var))  stDeclFiles: $(foreach var, $(SCHEMATOOLS), $(libdir)/$(PKGNAME)/$(var))
# Line 101  Line 108 
108  # grok yet  # grok yet
109    
110  $(libdir)/$(PKGNAME)Gen/%_st.py: $(TOPDIR)/$(PKGNAME)/%.py  $(libdir)/$(PKGNAME)/__init__.py  $(libdir)/$(PKGNAME)Gen/%_st.py: $(TOPDIR)/$(PKGNAME)/%.py  $(libdir)/$(PKGNAME)/__init__.py
111          cd $(libdir)/$(PKGNAME); $(bindir)/generatePy $< > $@          cd $(libdir)/$(PKGNAME); env PYTHONPATH=$(libdir) $(bindir)/generatePy $< > $@
112    
113  # generate .sql from schematools description of class. (Kah related)  # generate .sql from schematools description of class. (Kah related)
114  $(libdir)/$(PKGNAME)Gen/%.sql: $(TOPDIR)/$(PKGNAME)/%.py  $(libdir)/$(PKGNAME)Gen/%.sql: $(TOPDIR)/$(PKGNAME)/%.py
115          cd $(libdir)/$(PKGNAME); $(bindir)/generateDb $< > $@          cd $(libdir)/$(PKGNAME); env PYTHONPATH=$(libdir) $(bindir)/generateDb $< > $@
116    
117  # generate object/relational converters from schematools  # generate object/relational converters from schematools
118  # description of class. (Kah related)  # description of class. (Kah related)
119  $(libdir)/$(PKGNAME)Gen/%DbiHandler.py: $(TOPDIR)/$(PKGNAME)/%.py  $(libdir)/$(PKGNAME)Gen/%DbiHandler.py: $(TOPDIR)/$(PKGNAME)/%.py
120          cd $(libdir)/$(PKGNAME); $(bindir)/generateDbiHandler $< > $@          $(libdir)/$(PKGNAME); env PYTHONPATH=$(libdir) $(bindir)/generateDbiHandler $< > $@
121    
122  ##  ##
123  # bin related  # bin related
# Line 131  Line 138 
138          cp -p  $< $@          cp -p  $< $@
139          chmod 755 $@          chmod 755 $@
140    
141    ##
142    # cgi related
143    ##
144    
145    $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
146            cp -p $< $(cgidir)/Html/.
147    
148    $(cgidir)/%.cgi: $(TOPDIR)/$(PKGNAME)/%.py $(TOOL_HDR_PY)
149            ( cat $(TOOL_HDR_PY) $< > $@; chmod +x $@ )
150    
151    
152  ########################################################################  ########################################################################
153  # Dependency generation  # Dependency generation

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.15

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3