[Bio] / MGRASTBackend / Makefile Repository:
ViewVC logotype

Annotation of /MGRASTBackend/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (view) (download)

1 : jared 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 :    
29 :     WEBPAGES := $(wildcard *.tmpl) \
30 :     $(wildcard *.js) \
31 :     $(wildcard *.css)
32 :    
33 :     INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
34 :    
35 : jared 1.2
36 : jared 1.3 PERL_BIN_SRC := $(wildcard *.pl)
37 : jared 1.2
38 : jared 1.1 PERL_BIN = $(subst .pl,, $(PERL_BIN_SRC))
39 :    
40 :     all: lib bin
41 :    
42 :     show:
43 :     @echo cgis $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var))
44 :     @echo top $(TOPDIR)
45 :     @echo pkg $(PKGNAME)
46 :     @echo toolhdr $(TOOL_HDR)
47 :     bin: $(foreach var, $(PERL_BIN), $(bindir)/$(var))
48 :    
49 :     lib: $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var)) rights
50 :    
51 :     htaccess_src = $(RTROOT)/config/all.htaccess
52 :     htaccess_dst = $(cgidir)/.htaccess
53 :    
54 :     copy_htaccess: force
55 :     if test -f $(htaccess_src); then \
56 :     cp $(htaccess_src) $(htaccess_dst) ; \
57 :     fi
58 :    
59 :     force:
60 :    
61 :     schematools:
62 :     stDeclFiles:
63 :     stGeneratedFiles:
64 : jared 1.3
65 :    
66 : jared 1.1 test:
67 :     clean:
68 :    
69 :     $(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)
70 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
71 :    
72 :     $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
73 :     cp -p $< $(cgidir)/Html/.
74 :    
75 :     $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)
76 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
77 :    
78 :     $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
79 :     tgt_dir=`dirname $@`; \
80 :     if [ ! -d $$tgt_dir ] ; then \
81 :     mkdir $$tgt_dir; \
82 :     fi
83 :     cp -p $< $@
84 :    
85 :     rights:

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3