[Bio] / Sprout / Makefile Repository:
ViewVC logotype

Diff of /Sprout/Makefile

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

revision 1.4, Sat Dec 18 17:54:12 2004 UTC revision 1.19, Tue Dec 4 20:09:03 2007 UTC
# Line 1  Line 1 
1    PERL = $(shell sed -ne 's/^RTPERL=\(.*\)/\1/p' $(RTROOT)/config/RTConfig)
2    POD2HTML = $(PERL) $(shell $(PERL) -MConfig -e 'print "$$Config{installbin}/pod2html\n"')
3    
4  PERL_MODULES = \  PERLPACKAGES := $(wildcard *.pm)
5          ERDataBase/DBObject.pm \  PERLSCRIPTS := $(wildcard *.pl)
6          ERDataBase/DBQuery.pm \  ERDBS := $(wildcard *DBD.xml)
         ERDataBase/DBsmall.pm \  
         ERDataBase/ERDB.pm \  
         ERDataBase/Tracer.pm \  
         ERDataBase/Sprout.pm \  
         ERDataBase/Genome.pm  
   
 PERL_SCRIPTS = \  
         ERDataBase/SproutTest.pl  
7    
8  INSTALL_PACKAGE = FigKernelPackages  INSTALL_PACKAGE = FigKernelPackages
9    
10  lib:    $(foreach var, $(notdir $(PERL_MODULES)), $(libdir)/$(INSTALL_PACKAGE)/$(var))  lib: html_doc lib_pm bin xml search
11    
12    html_doc: html_doc_dir $(foreach var, $(subst .pm,.html, $(PERLPACKAGES)), $(cgidir)/Html/pod_docs/$(var))
13    
14    
15    lib_pm: $(foreach var, $(notdir $(PERLPACKAGES)), $(libdir)/$(INSTALL_PACKAGE)/$(var))
16    
17    bin:    $(foreach var, $(subst .pl,,$(notdir $(PERLSCRIPTS))), $(bindir)/$(var))
18    
19    xml:  $(foreach var, $(notdir $(ERDBS)), $(RTROOT)/FIG/$(var))
20    
21  bin:    $(foreach var, $(subst .pl,,$(notdir $(PERL_SCRIPTS))), $(bindir)/$(var))  search: $(cgidir)/NmpdrSearch.src $(cgidir)/NmpdrSearch.png
22    
23    $(RTROOT)/FIG/%.xml: %.xml
24            -rm -f $@
25            cp $< $@
26    
27    
28  schematools:  schematools:
# Line 26  Line 33 
33    
34  clean:  clean:
35    
36  $(libdir)/$(INSTALL_PACKAGE)/%.pm: $(TOPDIR)/$(PKGNAME)/ERDataBase/%.pm  html_doc_dir:
37          cp -p  $< $@          if [ ! -d $(cgidir)/Html/pod_docs  ] ; then mkdir $(cgidir)/Html/pod_docs; fi
38    
39    $(cgidir)/Html/pod_docs/%.html: $(TOPDIR)/$(PKGNAME)/%.pm
40            -$(POD2HTML) --outfile $@ $<
41    
42    $(libdir)/$(INSTALL_PACKAGE)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
43            cp  $< $@
44    
45  $(bindir)/%: $(TOPDIR)/$(PKGNAME)/ERDataBase/%.pl $(TOOL_HDR)  $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)
46          ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )          ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
47    
48    $(cgidir)/%.src: $(TOPDIR)/$(PKGNAME)/%.src
49            cp $< $@
50    
51    $(cgidir)/%.png: $(TOPDIR)/$(PKGNAME)/%.png
52            cp $< $@

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3