[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.11, Sat Mar 12 03:06:50 2005 UTC revision 1.12, Tue Apr 12 20:23:17 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    # CBINS       := foo bar etc.  List of .c binaries to build. Do not put .c
26    #                in the name
27    # CEXCLUDE    := list of .c files, besides $(CBINS).c, to exclude from the
28    #                list of C code to build into a .o
29    #
30    #
31  #BINPYSCRIPTS := script1.py etc.  List of py scripts to install in bin.  #BINPYSCRIPTS := script1.py etc.  List of py scripts to install in bin.
32  #                Installed as script1, not script1.py.  Filtered out of  #                Installed as script1, not script1.py.  Filtered out of
33  #                python library list (LIBPYFILES)  #                python library list (LIBPYFILES)
34    #BINPERLSCRIPTS := script1.pl etc.  List of perl scripts to install in bin.
35    #                Installed as script1, not script1.pl.  Filtered out of
36    #                python library list (LIBPYFILES)
37  #BINSHSCRIPTS:   List of borne shell scripts to be copied to bin verbatim.  #BINSHSCRIPTS:   List of borne shell scripts to be copied to bin verbatim.
38  #  #
39  #SCHEMATOOLS := file.py, etc.  List of python files defining input to schema  #SCHEMATOOLS := file.py, etc.  List of python files defining input to schema
# Line 46  Line 55 
55    
56    
57  LIBPYFILES := $(filter-out $(BINPYSCRIPTS) $(SCHEMATOOLS), $(wildcard *.py))  LIBPYFILES := $(filter-out $(BINPYSCRIPTS) $(SCHEMATOOLS), $(wildcard *.py))
58    LIBPERLFILES := $(filter-out $(BINPERLSCRIPTS), $(wildcard *.pl))
59    
60    
61  ########################################################################  ########################################################################
# Line 58  Line 67 
67    
68  all: schematools lib bin  all: schematools lib bin
69    
70  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, $(BINPERLSCRIPTS), $(subst .pl,,$(bindir)/$(var))) $(foreach var, $(BINSHSCRIPTS), $(subst .sh,,$(bindir)/$(var))) $(foreach var, $(BINSCRIPTS), $(bindir)/$(var)) $(foreach var, $(CBINS), $(bindir)/$(var))
71    
72  lib:    $(foreach var, $(LIBPYFILES), $(libdir)/$(PKGNAME)/$(var))  lib:    $(foreach var, $(LIBPYFILES), $(libdir)/$(PKGNAME)/$(var)) $(foreach var, $(LIBPERLFILES), $(libdir)/$(PKGNAME)/$(var))
73    
74  schematools: stDeclFiles stGeneratedFiles  schematools: stDeclFiles stGeneratedFiles
75    
# Line 80  Line 89 
89  # lib related  # lib related
90  ##  ##
91    
   
92  $(libdir)/$(PKGNAME)/%.py: $(TOPDIR)/$(PKGNAME)/%.py  $(libdir)/$(PKGNAME)/%.py: $(TOPDIR)/$(PKGNAME)/%.py
93          cp -p  $< $@          cp -p  $< $@
94    
95  $(libdir)/$(PKGNAME)/__init__.py: $(TOPDIR)/$(PKGNAME)/__init__.py  $(libdir)/$(PKGNAME)/__init__.py: $(TOPDIR)/$(PKGNAME)/__init__.py
96          cp -p  $< $@          cp -p  $< $@
97    
98    $(libdir)/$(PKGNAME)/%.pl: $(TOPDIR)/$(PKGNAME)/%.pl
99            cp -p  $< $@
100    
101    
102  # verbatim copy from sourcedir to libdir, e.g., py (distutils someday...)  # verbatim copy from sourcedir to libdir, e.g., py (distutils someday...)
103  # keep this overly generic one below the more specific py, above.  # keep this overly generic one below the more specific py, above.
104    #
105    # why is this here??? -ed
106  $(libdir)/$(PKGNAME)/%: $(TOPDIR)/$(PKGNAME)/%  $(libdir)/$(PKGNAME)/%: $(TOPDIR)/$(PKGNAME)/%
107          cp -p  $< $@          cp -p  $< $@
108    
# Line 115  Line 129 
129  ##  ##
130  # bin related  # bin related
131  ##  ##
132    
133    # C excecutables.
134    $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.c
135            $(CC) $(CFLAGS) -o $@ $<
136    
137  # python scripts. make script, "foo" from "foo.py".  (rewrite path #! someday)  # python scripts. make script, "foo" from "foo.py".  (rewrite path #! someday)
138  $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.py  $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.py
139          cp -p  $< $@          cp -p  $< $@
140          chmod 755 $@          chmod 755 $@
141    
142    # perl scripts. make script, "foo" from "foo.pl".  (rewrite path #! someday)
143    $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl
144            cp -p  $< $@
145            chmod 755 $@
146    
147  # borne shell scripts  # borne shell scripts
148    
149  $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.sh  $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.sh

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3