[Bio] / RAST / Makefile Repository:
ViewVC logotype

Annotation of /RAST/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3