[Bio] / FortyEightMeta / Makefile Repository:
ViewVC logotype

Annotation of /FortyEightMeta/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (view) (download)

1 : olson 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 :     PERL = $(RTROOT)/env/$(RTARCH)/bin/perl
28 :    
29 :     PERL_LIB = $(wildcard *.pm) \
30 :     $(wildcard WebPage/*.pm)
31 :    
32 :     WEBPAGES := $(wildcard *.tmpl)
33 :    
34 : olson 1.2 PERL_BIN_SRC = check_jobs_mg.pl mg_preprocess.pl mg_chunk_sims.pl mg_compute_sims.pl mg_sims.pl \
35 : olson 1.11 mg_create_seed_org.pl mg_figfam.pl mg_compute_sims_on_timelogic.pl mg_export.pl \
36 :     mg_check_sims.pl mg_load_sims.pl mg_load_done.pl mg_load_sims_file.pl mg_load_tax_db.pl \
37 : olson 1.12 mg_create_db_indexes.pl mg_port_job.pl \
38 : redwards 1.9 recover_broken_job.pl resume_after_fixed_fasta.pl
39 : olson 1.1
40 :    
41 :     INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
42 :     PERL_BIN = $(subst .pl,, $(PERL_BIN_SRC))
43 :     INST_PERL_BIN = $(foreach var, $(PERL_BIN), $(bindir)/$(var))
44 :    
45 :     all: lib
46 :    
47 :     show:
48 :     @echo cgis $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var))
49 :     @echo top $(TOPDIR)
50 :     @echo pkg $(PKGNAME)
51 :     @echo toolhdr $(TOOL_HDR)
52 :    
53 :     bin: $(INST_PERL_BIN)
54 :    
55 :     lib: $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var))
56 :    
57 :     htaccess_src = $(RTROOT)/config/all.htaccess
58 :     htaccess_dst = $(cgidir)/.htaccess
59 :    
60 :     copy_htaccess: force
61 :     if test -f $(htaccess_src); then \
62 :     cp $(htaccess_src) $(htaccess_dst) ; \
63 :     fi
64 :    
65 :     force:
66 :    
67 :     schematools:
68 :     stDeclFiles:
69 :     stGeneratedFiles:
70 :    
71 :    
72 :     test:
73 :    
74 :     clean:
75 :    
76 :     $(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)
77 : olson 1.3 cat $(TOOL_HDR) $< > $@
78 :     -chmod +x $@
79 : olson 1.1
80 :     $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
81 : olson 1.3 cp $< $(cgidir)/Html/.
82 : olson 1.1
83 :     #
84 :     # We have a config problem at the moment. I do not want to depend
85 :     # upon explicit calls to other packages, as done here nor do I want
86 :     # to assume that package was built first. For now, we live with this.
87 :    
88 :     #$(TOOL_HDR):
89 :     # cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)
90 :    
91 :    
92 :     #
93 :     # Since our lib files have directories, need to create the target
94 :     # directory if it doesn't yet exist.
95 :     #
96 :     $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
97 :     tgt_dir=`dirname $@`; \
98 :     if [ ! -d $$tgt_dir ] ; then \
99 :     mkdir $$tgt_dir; \
100 :     fi
101 : olson 1.3 cp $< $@
102 : olson 1.1
103 :     $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)
104 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
105 :    
106 :     # $(PERL) -c $<
107 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3