[Bio] / FigCommon / Makefile Repository:
ViewVC logotype

Annotation of /FigCommon/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (view) (download)

1 : efrank 1.1 #
2 :     #
3 :     #
4 :    
5 : olson 1.10 BINSCRIPTS := configure-env switch_to_release make_sandbox tool_hdr tool_hdr_py \
6 :     setup-sge sge-daemons
7 : olson 1.5 PERLPACKAGES := $(wildcard *.pm)
8 : efrank 1.1
9 : olson 1.5 lib: $(foreach var, $(PERLPACKAGES), $(libdir)/$(PKGNAME)/$(var))
10 : efrank 1.1
11 :     bin: $(foreach var, $(BINSCRIPTS), $(bindir)/$(var))
12 :    
13 : olson 1.9 schematools:
14 : olson 1.11 stDeclFiles:
15 :     stGeneratedFiles:
16 :    
17 : olson 1.12 #
18 :     # Machinery to fix perl's Config.pm to have the correct paths
19 :     # for this installation of the SEED environment - we may be
20 :     # running in a directory other than that the perl was compiled for.
21 :     #
22 :    
23 :     PERL = $(RTROOT)/env/$(RTARCH)/bin/perl
24 :    
25 :     #
26 :     # Determine the architecture name and version for the SEED environment perl.
27 :     #
28 :    
29 :     PERL_ARCH = $(shell $(PERL) -e 'use Config; print $$Config{archname}')
30 :     PERL_VERS = $(shell $(PERL) -e 'use Config; print $$Config{version}')
31 :    
32 :     #
33 :     # Use these to determine the directory in which Config.pm is located.
34 :     #
35 :     PERL_ARCH_LIB = $(RTROOT)/env/$(RTARCH)/lib/perl5/$(PERL_VERS)/$(PERL_ARCH)
36 :     PERL_CONFIG_DIST = $(PERL_ARCH_LIB)/Config.pm.dist
37 :     PERL_CONFIG = $(PERL_ARCH_LIB)/Config.pm
38 :    
39 :     #
40 :     # The SEED environment has a file PREFIX that declares the location
41 :     # to which the environment was installed at compilation time.
42 :     #
43 :     PERL_INST_PREFIX = $(shell cat $(RTROOT)/env/$(RTARCH)/PREFIX)
44 :    
45 :     #
46 :     # Fix Config.pm by replacing the install prefix with the current location.
47 :     #
48 :    
49 :     fix_perl_configpm: $(PERL_CONFIG_DIST)
50 :     chmod +w $(PERL_CONFIG)
51 :     sed -e 's,$(PERL_INST_PREFIX),$(RTROOT)/env/$(RTARCH),g' < $(PERL_CONFIG_DIST) > $(PERL_CONFIG)
52 :     chmod -w $(PERL_CONFIG)
53 :     touch fix_perl_configpm
54 :    
55 :     #
56 :     # Copy the original Config.pm to Config.pm.dist if we haven't done so before.
57 :     #
58 :    
59 :     $(PERL_CONFIG_DIST): $(PERL_CONFIG)
60 :     if [ ! -f $(PERL_CONFIG_DIST) ] ; then \
61 :     cp $(PERL_CONFIG) $(PERL_CONFIG_DIST); \
62 :     fi
63 :     chmod +w $(PERL_CONFIG)
64 :     chmod -w $(PERL_CONFIG_DIST)
65 :     touch $(PERL_CONFIG_DIST)
66 :     chmod +w $(PERL_CONFIG_DIST)
67 : olson 1.9
68 : efrank 1.2 test:
69 :    
70 :     clean:
71 : olson 1.12 -rm fix_perl_configpm
72 : efrank 1.1
73 :     $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%
74 :     cp -p $< $(bindir)/.
75 : efrank 1.3
76 :     $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)
77 :     ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
78 : olson 1.5
79 :     $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
80 :     cp -p $< $@
81 : efrank 1.1

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3