[Bio] / Sprout / Makefile Repository:
ViewVC logotype

Diff of /Sprout/Makefile

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

revision 1.2, Mon Dec 6 18:33:26 2004 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    # POD2HTML = $(PERL) $(shell $(PERL) -MConfig -e 'print "$$Config{installbin}/pod2html\n"')
3    POD2HTML = $(PERL) $(shell echo $(PERL) | sed 's/perl$$/pod2html/')
4    
5    PERLPACKAGES := $(wildcard *.pm)
6    PERLSCRIPTS := $(wildcard *.pl)
7    ERDBS := $(wildcard *DBD.xml)
8    
9  PERL_MODULES = \  INSTALL_PACKAGE = FigKernelPackages
         ERDataBase/DBObject.pm \  
         ERDataBase/DBQuery.pm \  
         ERDataBase/DBsmall.pm \  
         ERDataBase/ERDB.pm \  
         ERDataBase/Tracer.pm \  
         ERDataBase/Sprout.pm  
10    
11  PERL_SCRIPTS = \  lib: html_doc lib_pm bin xml search
         ERDataBase/SproutTest.pl  
12    
13  INSTALL_PACKAGE = FigKernelPackages  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  lib:    $(foreach var, $(notdir $(PERL_MODULES)), $(libdir)/$(INSTALL_PACKAGE)/$(var))  bin:    $(foreach var, $(subst .pl,,$(notdir $(PERLSCRIPTS))), $(bindir)/$(var))
19    
20  bin:    $(foreach var, $(subst .pl,,$(notdir $(PERL_SCRIPTS))), $(bindir)/$(var))  xml:  $(foreach var, $(notdir $(ERDBS)), $(RTROOT)/FIG/$(var))
21    
22    search: $(cgidir)/NmpdrSearch.src $(cgidir)/NmpdrSearch.png
23    
24    $(RTROOT)/FIG/%.xml: %.xml
25            -rm -f $@
26            cp $< $@
27    
28    
29  schematools:  schematools:
# Line 25  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.2  
changed lines
  Added in v.1.20

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3