[Bio] / MGRAST / Makefile Repository:
ViewVC logotype

Annotation of /MGRAST/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (view) (download)

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3