[Bio] / Sprout / Makefile Repository:
ViewVC logotype

Diff of /Sprout/Makefile

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

revision 1.8, Tue Jan 18 20:34:16 2005 UTC revision 1.17, Thu Feb 8 22:02:18 2007 UTC
# Line 1  Line 1 
1    
2  PERL_MODULES = \  PERLPACKAGES := $(wildcard *.pm)
3          ERDataBase/DBObject.pm \  PERLSCRIPTS := $(wildcard *.pl)
4          ERDataBase/DBQuery.pm \  ERDBS := $(wildcard *DBD.xml)
         ERDataBase/DBKernel.pm \  
         ERDataBase/ERDB.pm \  
         ERDataBase/Sprout.pm \  
         ERDataBase/PageBuilder.pm \  
         ERDataBase/FIGRules.pm \  
         ERDataBase/Stats.pm \  
         ERDataBase/Genome.pm  
   
 PERL_SCRIPTS = \  
         ERDataBase/SproutTest.pl \  
         ERDataBase/FIGSproutTest.pl  
5    
6  INSTALL_PACKAGE = FigKernelPackages  INSTALL_PACKAGE = FigKernelPackages
7    
8  lib:    $(foreach var, $(notdir $(PERL_MODULES)), $(libdir)/$(INSTALL_PACKAGE)/$(var))  lib: html_doc lib_pm bin xml search
9    
10  bin:    $(foreach var, $(subst .pl,,$(notdir $(PERL_SCRIPTS))), $(bindir)/$(var))  html_doc: html_doc_dir $(foreach var, $(subst .pm,.html, $(PERLPACKAGES)), $(cgidir)/Html/pod_docs/$(var))
11    
12    
13    lib_pm: $(foreach var, $(notdir $(PERLPACKAGES)), $(libdir)/$(INSTALL_PACKAGE)/$(var))
14    
15    bin:    $(foreach var, $(subst .pl,,$(notdir $(PERLSCRIPTS))), $(bindir)/$(var))
16    
17    xml:  $(foreach var, $(notdir $(ERDBS)), $(RTROOT)/FIG/$(var))
18    
19    search: $(cgidir)/NmpdrSearch.src $(cgidir)/NmpdrSearch.png
20    
21    $(RTROOT)/FIG/%.xml: %.xml
22            -rm -f $@
23            cp $< $@
24    
25    
26  schematools:  schematools:
# Line 29  Line 31 
31    
32  clean:  clean:
33    
34  $(libdir)/$(INSTALL_PACKAGE)/%.pm: $(TOPDIR)/$(PKGNAME)/ERDataBase/%.pm  html_doc_dir:
35            if [ ! -d $(cgidir)/Html/pod_docs  ] ; then mkdir $(cgidir)/Html/pod_docs; fi
36    
37    $(cgidir)/Html/pod_docs/%.html: $(TOPDIR)/$(PKGNAME)/%.pm
38            -$(FIG_HOME)/env/$(RTARCH)/bin/perl $(FIG_HOME)/env/$(RTARCH)/bin/pod2html --outfile $@ $<
39    
40    $(libdir)/$(INSTALL_PACKAGE)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
41          cp -p  $< $@          cp -p  $< $@
42    
43  $(bindir)/%: $(TOPDIR)/$(PKGNAME)/ERDataBase/%.pl $(TOOL_HDR)  $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)
44          ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )          ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
45    
46    $(cgidir)/%.src: $(TOPDIR)/$(PKGNAME)/%.src
47            cp -p $< $@
48    
49    $(cgidir)/%.png: $(TOPDIR)/$(PKGNAME)/%.png
50            cp -p $< $@

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3