[Bio] / FortyEight / Makefile Repository:
ViewVC logotype

Annotation of /FortyEight/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (view) (download)

1 : paarmann 1.1 #
2 :     # Copyright (c) 2003-2006 University of Chicago and Fellowship
3 :     # for Interpretations of Genomes. All Rights Reserved.
4 :     #
5 :     # This file is part of the SEED Toolkit.
6 :     #
7 :     # The SEED Toolkit is free software. You can redistribute
8 :     # it and/or modify it under the terms of the SEED Toolkit
9 :     # Public License.
10 :     #
11 :     # You should have received a copy of the SEED Toolkit Public License
12 :     # along with this program; if not write to the University of Chicago
13 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
14 :     # Genomes at veronika@thefig.info or download a copy from
15 :     # http://www.theseed.org/LICENSE.TXT.
16 :     #
17 :    
18 :     #
19 :     # seed_running_perl.fragement is the piece of perl code that
20 :     # checks to see if the seed server is up, and prints a message and returns
21 :     # if it is not.
22 :     #
23 :     SEED_RUNNING_PERL = seed_running_perl.fragment
24 :    
25 :     PERLCGISCRIPTS := $(subst .pl,,$(wildcard *.cgi))
26 :    
27 : paczian 1.6 PERL_LIB = $(wildcard *.pm) \
28 : paarmann 1.9 $(wildcard WebPage/*.pm) \
29 :     $(wildcard WebApp/*.pm) \
30 :     $(wildcard WebApplicationServer/*.pm)
31 : paczian 1.6
32 :     WEBPAGES := $(wildcard *.tmpl)
33 :    
34 : olson 1.4 PERL_BIN_SRC = check_jobs.pl rp_chunk_sims.pl rp_compute_sims.pl rp_postproc_sims.pl \
35 : olson 1.7 rp_auto_assign.pl rp_quality_check.pl rp_correction.pl rp_compute_bbhs.pl \
36 : olson 1.8 find-genomes-not-in-seed rp_rapid_propagation.pl rp_glue_contigs.pl rp_compute_pchs.pl
37 : olson 1.2
38 : paarmann 1.1 INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
39 : olson 1.2 PERL_BIN = $(subst .pl,, $(PERL_BIN_SRC))
40 :     INST_PERL_BIN = $(foreach var, $(PERL_BIN), $(bindir)/$(var))
41 : paarmann 1.1
42 :     all: lib
43 :    
44 :     show:
45 :     @echo cgis $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var))
46 :     @echo top $(TOPDIR)
47 :     @echo pkg $(PKGNAME)
48 :     @echo toolhdr $(TOOL_HDR)
49 : olson 1.2
50 :     bin: $(INST_PERL_BIN)
51 : paarmann 1.1
52 : paczian 1.6 lib: $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var))
53 : paarmann 1.1
54 :     htaccess_src = $(RTROOT)/config/all.htaccess
55 :     htaccess_dst = $(cgidir)/.htaccess
56 :    
57 :     copy_htaccess: force
58 :     if test -f $(htaccess_src); then \
59 :     cp $(htaccess_src) $(htaccess_dst) ; \
60 :     fi
61 :    
62 :     force:
63 :    
64 :     schematools:
65 :     stDeclFiles:
66 :     stGeneratedFiles:
67 :    
68 :    
69 :     test:
70 :    
71 :     clean:
72 :    
73 :     $(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)
74 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
75 :    
76 : paczian 1.6 $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
77 :     cp -p $< $(cgidir)/Html/.
78 :    
79 : paarmann 1.1 #
80 :     # We have a config problem at the moment. I do not want to depend
81 :     # upon explicit calls to other packages, as done here nor do I want
82 :     # to assume that package was built first. For now, we live with this.
83 :    
84 :     #$(TOOL_HDR):
85 :     # cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)
86 :    
87 :    
88 :     #
89 :     # Since our lib files have directories, need to create the target
90 :     # directory if it doesn't yet exist.
91 :     #
92 :     $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
93 :     tgt_dir=`dirname $@`; \
94 :     if [ ! -d $$tgt_dir ] ; then \
95 :     mkdir $$tgt_dir; \
96 :     fi
97 :     cp -p $< $@
98 :    
99 : olson 1.2 $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)
100 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
101 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3