[Bio] / FortyEightMeta / Makefile Repository:
ViewVC logotype

View of /FortyEightMeta/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (download) (annotate)
Wed Jun 11 21:16:42 2008 UTC (11 years, 7 months ago) by olson
Branch: MAIN
CVS Tags: mgrast_rel_2008_0806, mgrast_rel_2008_0923, mgrast_rel_2008_0924, mgrast_rel_2008_1110_v2, mgrast_rel_2008_0625, mgrast_rel_2008_0919, mgrast_rel_2008_1110, mgrast_rel_2008_0917
Changes since 1.11: +1 -0 lines
Commit of initial MGRAST2 code.

#
# 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 info@ci.uchicago.edu or the Fellowship for Interpretation of
# Genomes at veronika@thefig.info 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 = $(RTROOT)/env/$(RTARCH)/bin/perl

PERL_LIB = $(wildcard *.pm) \
	   $(wildcard WebPage/*.pm)		

WEBPAGES := $(wildcard *.tmpl)

PERL_BIN_SRC = check_jobs_mg.pl  mg_preprocess.pl mg_chunk_sims.pl mg_compute_sims.pl mg_sims.pl \
	mg_create_seed_org.pl mg_figfam.pl mg_compute_sims_on_timelogic.pl mg_export.pl \
	mg_check_sims.pl mg_load_sims.pl mg_load_done.pl mg_load_sims_file.pl mg_load_tax_db.pl \
	mg_create_db_indexes.pl mg_port_job.pl \
	recover_broken_job.pl resume_after_fixed_fasta.pl


INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
PERL_BIN = $(subst .pl,, $(PERL_BIN_SRC))
INST_PERL_BIN = $(foreach var, $(PERL_BIN), $(bindir)/$(var))

all: lib

show:
	@echo cgis $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var))
	@echo top $(TOPDIR)
	@echo pkg $(PKGNAME)
	@echo toolhdr $(TOOL_HDR)

bin: $(INST_PERL_BIN)

lib:	$(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var))

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  $< $(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   $< $@

$(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)
	( cat $(TOOL_HDR) $< > $@; chmod +x $@ )

#	$(PERL) -c $<


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3