[Bio] / FortyEight / Makefile Repository:
ViewVC logotype

Annotation of /FortyEight/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (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 = \
28 :     WebPage/Login.pm \
29 :     WebPage/UserManagement.pm \
30 :     WebPage/Nosuchpage.pm
31 :    
32 :     INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
33 :    
34 :     all: lib
35 :    
36 :     show:
37 :     @echo cgis $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var))
38 :     @echo top $(TOPDIR)
39 :     @echo pkg $(PKGNAME)
40 :     @echo toolhdr $(TOOL_HDR)
41 :     bin:
42 :    
43 :     lib: $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB)
44 :    
45 :     htaccess_src = $(RTROOT)/config/all.htaccess
46 :     htaccess_dst = $(cgidir)/.htaccess
47 :    
48 :     copy_htaccess: force
49 :     if test -f $(htaccess_src); then \
50 :     cp $(htaccess_src) $(htaccess_dst) ; \
51 :     fi
52 :    
53 :     force:
54 :    
55 :     schematools:
56 :     stDeclFiles:
57 :     stGeneratedFiles:
58 :    
59 :    
60 :     test:
61 :    
62 :     clean:
63 :    
64 :     $(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)
65 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
66 :    
67 :     #
68 :     # We have a config problem at the moment. I do not want to depend
69 :     # upon explicit calls to other packages, as done here nor do I want
70 :     # to assume that package was built first. For now, we live with this.
71 :    
72 :     #$(TOOL_HDR):
73 :     # cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)
74 :    
75 :    
76 :     #
77 :     # Since our lib files have directories, need to create the target
78 :     # directory if it doesn't yet exist.
79 :     #
80 :     $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
81 :     tgt_dir=`dirname $@`; \
82 :     if [ ! -d $$tgt_dir ] ; then \
83 :     mkdir $$tgt_dir; \
84 :     fi
85 :     cp -p $< $@
86 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3