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

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3