[Bio] / SubsystemEditor / Makefile Repository:
ViewVC logotype

Annotation of /SubsystemEditor/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (view) (download)

1 : parrello 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 : bartels 1.3 #
7 : parrello 1.1 # The SEED Toolkit is free software. You can redistribute
8 :     # it and/or modify it under the terms of the SEED Toolkit
9 : bartels 1.3 # Public License.
10 : parrello 1.1 #
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 : bartels 1.3 SEED_RUNNING_PERL = seed_running_perl.fragment
24 : parrello 1.1
25 :     PERLCGISCRIPTS := $(subst .pl,,$(wildcard *.cgi))
26 :    
27 :     PERL_LIB = $(wildcard *.pm) \
28 :     $(wildcard WebPage/*.pm)
29 :    
30 :     WEBPAGES := $(wildcard *.tmpl) \
31 :     $(wildcard images/*.png) \
32 :     $(wildcard images/*.jpeg) \
33 : bartels 1.3 $(wildcard *.js) \
34 : parrello 1.1 $(wildcard *.css)
35 :    
36 :     INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
37 :    
38 :     all: lib
39 :    
40 :     show:
41 :     @echo cgis $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var))
42 :     @echo top $(TOPDIR)
43 :     @echo pkg $(PKGNAME)
44 :     @echo toolhdr $(TOOL_HDR)
45 :     bin:
46 :    
47 : bartels 1.3 lib: $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var)) rights
48 : parrello 1.1
49 :     htaccess_src = $(RTROOT)/config/all.htaccess
50 :     htaccess_dst = $(cgidir)/.htaccess
51 :    
52 :     copy_htaccess: force
53 :     if test -f $(htaccess_src); then \
54 :     cp $(htaccess_src) $(htaccess_dst) ; \
55 :     fi
56 :    
57 :     force:
58 :    
59 :     schematools:
60 :     stDeclFiles:
61 :     stGeneratedFiles:
62 :    
63 :    
64 :     test:
65 :    
66 :     clean:
67 :    
68 :     $(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)
69 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
70 :    
71 :     $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
72 : bartels 1.3 cp -p $< $(cgidir)/Html/.
73 : parrello 1.1
74 :    
75 :     #
76 :     # We have a config problem at the moment. I do not want to depend
77 :     # upon explicit calls to other packages, as done here nor do I want
78 :     # to assume that package was built first. For now, we live with this.
79 :    
80 :     #$(TOOL_HDR):
81 :     # cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)
82 :    
83 :    
84 :     #
85 :     # Since our lib files have directories, need to create the target
86 :     # directory if it doesn't yet exist.
87 :     #
88 :     $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
89 :     tgt_dir=`dirname $@`; \
90 :     if [ ! -d $$tgt_dir ] ; then \
91 :     mkdir $$tgt_dir; \
92 :     fi
93 : bartels 1.3 cp -p $< $@
94 : parrello 1.1
95 : bartels 1.3 rights:
96 :     cd $(TOPDIR)/WebApplication/scripts; \
97 :     perl create_application_rights_module.pl -path $(TOPDIR) -application $(PKGNAME)

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3