[Bio] / Babel / Makefile Repository:
ViewVC logotype

Annotation of /Babel/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (view) (download)

1 : wilke 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 : wilke 1.2 $(wildcard WebPage/*.pm)\
29 : tharriso 1.3 $(wildcard lib/*.pm)
30 :    
31 : wilke 1.1 WEBPAGES := $(wildcard *.tmpl) \
32 :     $(wildcard images/*.png) \
33 :     $(wildcard images/*.jpeg) \
34 :     $(wildcard *.css)
35 :    
36 :     INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
37 : tharriso 1.3 INST_SQL_LIB = $(foreach var, $(SQL_LIB), $(libdir)/$(PKGNAME)/$(var))
38 :    
39 : tharriso 1.4 #PERL_BIN = $(subst .pl,, $(wildcard bin/*.pl))
40 :     #PYTHON_BIN = $(subst .py,, $(wildcard bin/*.py))
41 : wilke 1.1
42 : tharriso 1.4 all: lib #bin
43 : wilke 1.1
44 :     show:
45 :     @echo cgis $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var))
46 :     @echo top $(TOPDIR)
47 :     @echo pkg $(PKGNAME)
48 :     @echo toolhdr $(TOOL_HDR)
49 :    
50 : tharriso 1.4 #bin: $(foreach var, $(PERL_BIN), $(commondir)/$(var)) $(foreach var, $(PYTHON_BIN), $(commondir)/$(var))
51 : tharriso 1.3
52 :     lib: $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(INST_SQL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var)) rights fix_web_perms
53 : wilke 1.1
54 :     fix_web_perms:
55 :     ifneq (,$(findstring public_html, $(cgidir)))
56 :     chmod go-w $(cgidir)
57 :     endif
58 :    
59 :    
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 :    
74 :    
75 :     test:
76 :    
77 :     clean:
78 :    
79 :     $(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)
80 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
81 :     ifneq (,$(findstring public_html, $(cgidir)))
82 :     chmod go-w $@
83 :     endif
84 :    
85 :     $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
86 :     cp $< $(cgidir)/Html/.
87 :    
88 :    
89 :     #
90 :     # We have a config problem at the moment. I do not want to depend
91 :     # upon explicit calls to other packages, as done here nor do I want
92 :     # to assume that package was built first. For now, we live with this.
93 :    
94 :     #$(TOOL_HDR):
95 :     # cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)
96 :    
97 :    
98 :     #
99 :     # Since our lib files have directories, need to create the target
100 :     # directory if it doesn't yet exist.
101 :     #
102 :     $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
103 :     tgt_dir=`dirname $@`; \
104 :     if [ ! -d $$tgt_dir ] ; then \
105 :     mkdir $$tgt_dir; \
106 :     fi
107 :     cp $< $@
108 :    
109 :     rights:
110 :     cd $(TOPDIR)/WebApplication/scripts; \
111 : tharriso 1.3 perl create_application_rights_module.pl -path $(TOPDIR) -application $(PKGNAME)

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3