[Bio] / PPO / Makefile Repository:
ViewVC logotype

Diff of /PPO/Makefile

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

revision 1.3, Thu Jul 26 19:39:05 2007 UTC revision 1.4, Wed Dec 5 19:05:53 2007 UTC
# Line 1  Line 1 
1  #  #
2  #  # Makefile for PPO
3  #  #
4    
5  PERLPACKAGES := $(wildcard *.pm) \  PERLPACKAGES := $(wildcard *.pm) \
6                  $(wildcard PPOBackend/*.pm)                  $(wildcard PPOBackend/*.pm)
7  PYPACKAGES := $(wildcard *.py)  PERL_BIN_SRC := $(wildcard *.pl)
8    PERL_BIN = $(subst .pl,, $(PERL_BIN_SRC))
 lib: lib_perl lib_py html_doc  
   
 lib_perl:       $(foreach var, $(PERLPACKAGES), $(libdir)/$(PKGNAME)/$(var))  
 lib_py: $(foreach var, $(PYPACKAGES), $(libdir)/$(PKGNAME)/$(var))  
   
 html_doc: html_doc_dir $(foreach var, $(subst .pm,.html, $(PERLPACKAGES)), $(cgidir)/Html/pod_docs/$(var))  
9    
10  bin:  lib: $(foreach var, $(PERLPACKAGES), $(libdir)/$(PKGNAME)/$(var))
11    bin: $(foreach var, $(PERL_BIN), $(bindir)/$(var))
12    
13  schematools:  schematools:
14  stDeclFiles:  stDeclFiles:
15  stGeneratedFiles:  stGeneratedFiles:
   
   
16  test:  test:
   
17  clean:  clean:
18    
 html_doc_dir:  
         if [ ! -d $(cgidir)/Html/pod_docs  ] ; then mkdir $(cgidir)/Html/pod_docs; fi  
   
19  $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm  $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
20          tgt_dir=`dirname $@`;  \          tgt_dir=`dirname $@`;  \
21          if [ ! -d $$tgt_dir ] ; then \          if [ ! -d $$tgt_dir ] ; then \
# Line 34  Line 23 
23          fi          fi
24          cp  $< $@          cp  $< $@
25    
 $(libdir)/$(PKGNAME)/%.py: $(TOPDIR)/$(PKGNAME)/%.py  
         cp  $< $@  
   
 $(cgidir)/Html/pod_docs/%.html: $(TOPDIR)/$(PKGNAME)/%.pm  
         -$(FIG_HOME)/env/$(RTARCH)/bin/perl $(FIG_HOME)/env/$(RTARCH)/bin/pod2html --outfile $@ $<  
   
 #  
 # We have a config problem at the moment.  I do not want to depend  
 # upon explicit calls to other packages, as done here nor do I want  
 # to assume that package was built first.  For now, we live with this.  
   
 #$(workdir)/FIG_Config.pm:  
 #       cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)  
   
26  $(libdir)/$(PKGNAME)/%.pm: $(workdir)/%.pm  $(libdir)/$(PKGNAME)/%.pm: $(workdir)/%.pm
27          cp  $< $@          cp  $< $@
 $(libdir)/$(PKGNAME)/%.py: $(workdir)/%.py  
         cp  $< $@  
28    
29    $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)
30            ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3