-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathExample.Makefile
More file actions
executable file
·96 lines (73 loc) · 2.45 KB
/
Example.Makefile
File metadata and controls
executable file
·96 lines (73 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# Copyright (c) 2003-2006 University of Chicago and Fellowship
# for Interpretations of Genomes. All Rights Reserved.
#
# This file is part of the SEED Toolkit.
#
# The SEED Toolkit is free software. You can redistribute
# it and/or modify it under the terms of the SEED Toolkit
# Public License.
#
# You should have received a copy of the SEED Toolkit Public License
# along with this program; if not write to the University of Chicago
# at [email protected] or the Fellowship for Interpretation of
# Genomes at [email protected] or download a copy from
# http://www.theseed.org/LICENSE.TXT.
#
#
# seed_running_perl.fragement is the piece of perl code that
# checks to see if the seed server is up, and prints a message and returns
# if it is not.
#
SEED_RUNNING_PERL = seed_running_perl.fragment
PERLCGISCRIPTS := $(subst .pl,,$(wildcard *.cgi))
PERL_LIB = $(wildcard *.pm) \
$(wildcard WebPage/*.pm)
WEBPAGES := $(wildcard *.tmpl) \
$(wildcard images/*.png) \
$(wildcard images/*.jpeg) \
$(wildcard css/*.css)
INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
all: lib
show:
@echo cgis $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var))
@echo top $(TOPDIR)
@echo pkg $(PKGNAME)
@echo toolhdr $(TOOL_HDR)
bin:
lib: $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var)) rights
htaccess_src = $(RTROOT)/config/all.htaccess
htaccess_dst = $(cgidir)/.htaccess
copy_htaccess: force
if test -f $(htaccess_src); then \
cp $(htaccess_src) $(htaccess_dst) ; \
fi
force:
schematools:
stDeclFiles:
stGeneratedFiles:
test:
clean:
$(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)
( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
$(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
cp -p $< $(cgidir)/Html/.
#
# We have a config problem at the moment. I do not want to depend
# upon explicit calls to other packages, as done here nor do I want
# to assume that package was built first. For now, we live with this.
#$(TOOL_HDR):
# cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)
#
# Since our lib files have directories, need to create the target
# directory if it doesn't yet exist.
#
$(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
tgt_dir=`dirname $@`; \
if [ ! -d $$tgt_dir ] ; then \
mkdir $$tgt_dir; \
fi
cp -p $< $@
rights:
cd $(TOPDIR)/WebApplication/scripts; \
perl create_application_rights_module.pl -path $(TOPDIR) -application $(PKGNAME)