[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.16, Fri Apr 22 17:35:12 2005 UTC revision 1.17, Fri Apr 22 17:58:33 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
28    #                 bin step and exclude from py lib list.
29    #
30  # CBINS       := foo.c bar.c etc.  List of .c binaries to build.  # CBINS       := foo.c bar.c etc.  List of .c binaries to build.
31  #  #
32  # CEXCLUDES   := list of .c files, besides $(CBINS), to exclude from the  # CEXCLUDES   := list of .c files, besides $(CBINS), to exclude from the
# Line 54  Line 59 
59  ########################################################################  ########################################################################
60    
61    
62  LIBPYFILES := $(filter-out $(BINPYSCRIPTS) $(SCHEMATOOLS), $(wildcard *.py))  LIBPYFILES := $(filter-out $(BINPYSCRIPTS) $(PYTHON_OPEN_CGI) $(SCHEMATOOLS), $(wildcard *.py))
63  LIBPERLFILES := $(filter-out $(BINPERLSCRIPTS), $(wildcard *.pl))  LIBPERLFILES := $(filter-out $(BINPERLSCRIPTS), $(wildcard *.pl))
64  LIBCFILES := $(foreach var, $(filter-out $(CBINS) $(CEXCLUDES), $(wildcard *.c)), $(libdir)/$(PKGNAME)/$(subst .c,.o,$(var)))  LIBCFILES := $(foreach var, $(filter-out $(CBINS) $(CEXCLUDES), $(wildcard *.c)), $(libdir)/$(PKGNAME)/$(subst .c,.o,$(var)))
65    
# Line 68  Line 73 
73    
74  all: schematools lib bin  all: schematools lib bin
75    
76  bin:      $(foreach var, $(BINPYSCRIPTS), $(subst .py,,$(bindir)/$(var))) $(foreach var, $(BINPERLSCRIPTS), $(subst .pl,,$(bindir)/$(var))) $(foreach var, $(BINSHSCRIPTS), $(subst .sh,,$(bindir)/$(var))) $(foreach var, $(BINSCRIPTS), $(bindir)/$(var)) $(foreach var, $(CBINS), $(subst .c,,$(bindir)/$(var)))  bin:      $(foreach var, $(BINPYSCRIPTS), $(subst .py,,$(bindir)/$(var))) $(foreach var, $(BINPERLSCRIPTS), $(subst .pl,,$(bindir)/$(var))) $(foreach var, $(BINSHSCRIPTS), $(subst .sh,,$(bindir)/$(var))) $(foreach var, $(BINSCRIPTS), $(bindir)/$(var)) $(foreach var, $(CBINS), $(subst .c,,$(bindir)/$(var))) opencgi webpages
77    
78  lib:    $(foreach var, $(LIBPYFILES), $(libdir)/$(PKGNAME)/$(var)) $(foreach var, $(LIBPERLFILES), $(libdir)/$(PKGNAME)/$(var)) $(LIBCFILES)  lib:    $(foreach var, $(LIBPYFILES), $(libdir)/$(PKGNAME)/$(var)) $(foreach var, $(LIBPERLFILES), $(libdir)/$(PKGNAME)/$(var)) $(LIBCFILES)
79    
80    opencgi: $(foreach var, $(PYTHON_OPEN_CGI), $(subst .py,.cgi, $(cgidir)/$(var)))
81    
82    webpages: $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var))
83    
84  schematools: stDeclFiles stGeneratedFiles  schematools: stDeclFiles stGeneratedFiles
85    
86  stDeclFiles: $(foreach var, $(SCHEMATOOLS), $(libdir)/$(PKGNAME)/$(var))  stDeclFiles: $(foreach var, $(SCHEMATOOLS), $(libdir)/$(PKGNAME)/$(var))
# Line 159  Line 168 
168          cp -p  $< $@          cp -p  $< $@
169          chmod 755 $@          chmod 755 $@
170    
171    ##
172    # cgi related
173    ##
174    
175    $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
176            cp -p $< $(cgidir)/Html/.
177    
178    $(cgidir)/%.cgi: $(TOPDIR)/$(PKGNAME)/%.py $(TOOL_HDR_PY)
179            ( cat $(TOOL_HDR_PY) $< > $@; chmod +x $@ )
180    
181  ########################################################################  ########################################################################
182  # Dependency generation  # Dependency generation

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3