[Bio] / Clearinghouse / Makefile Repository:
ViewVC logotype

View of /Clearinghouse/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (download) (annotate)
Mon Oct 9 16:43:48 2006 UTC (13 years ago) by olson
Branch: MAIN
CVS Tags: myrast_33, HEAD
Changes since 1.14: +1 -1 lines
some minor fixes.

PERL = $(RTROOT)/env/$(RTARCH)/bin/perl

PYTHON_OPEN_CGI_SRC = 

PYTHON_PROTECTED_CGI_SRC = 

PYTHON_BIN_SRC =

PYTHON_OPEN_CGI = $(subst .py,.cgi, $(PYTHON_OPEN_CGI_SRC))
PYTHON_PROTECTED_CGI = $(subst .py,.cgi, $(PYTHON_PROTECTED_CGI_SRC))
PYTHON_BIN = $(subst .py,, $(PYTHON_BIN_SRC))

INST_PYTHON_OPEN_CGI = $(foreach var, $(PYTHON_OPEN_CGI), $(cgidir)/$(var)) 
INST_PYTHON_PROTECTED_CGI = $(foreach var, $(PYTHON_PROTECTED_CGI), $(cgidir)/p2p/$(var)) 
INST_PYTHON_BIN = $(foreach var, $(PYTHON_BIN), $(bindir)/$(var))

PERL_OPEN_CGI_SRC = pkg_download.pl clearinghouse_register.pl clearinghouse_upload.pl clearinghouse_browser.pl clearinghouse_services.pl pkg_upload.pl pins_for_peg.pl precomputed_pin.pl

PERL_PROTECTED_CGI_SRC =

PERL_BIN_SRC = test_deposit_upload.pl test_let_me_give_you_this.pl test_start_up.pl \
		test_take_this_deposit_from_me.pl test_what_is_there.pl gen_seed_tables.pl \
		upload_subsystem.pl upload_genome.pl

PERL_OPEN_CGI = $(subst .pl,.cgi, $(PERL_OPEN_CGI_SRC))
PERL_PROTECTED_CGI = $(subst .pl,.cgi, $(PERL_PROTECTED_CGI_SRC))
PERL_BIN = $(subst .pl,, $(PERL_BIN_SRC))

INST_PERL_OPEN_CGI = $(foreach var, $(PERL_OPEN_CGI), $(cgidir)/$(var)) 
INST_PERL_PROTECTED_CGI = $(foreach var, $(PERL_PROTECTED_CGI), $(cgidir)/p2p/$(var)) 
INST_PERL_BIN = $(foreach var, $(PERL_BIN), $(bindir)/$(var))

PERL_LIB = ch_database.pm utils.pm

INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))

HTML = genome.html clearinghouse.hdr
INST_HTML = $(foreach var, $(HTML), $(cgidir)/Html/$(var))

lib:  $(INST_PYTHON_OPEN_CGI) $(INST_PYTHON_PROTECTED_CGI) \
	$(INST_PERL_OPEN_CGI) $(INST_PERL_PROTECTED_CGI) $(INST_PERL_LIB) $(INST_HTML)

bin: $(INST_PYTHON_BIN) $(INST_PERL_BIN)

force:

show:
	@echo $(PYTHON_CGI_SRC)
	@echo $(PYTHON_CGI)
	@echo $(PERL_OPEN_CGI_SRC)
	@echo $(PERL_OPEN_CGI)
	@echo $(INST_PERL_OPEN_CGI)

schematools:
stDeclFiles:
stGeneratedFiles:


test:

clean:

TOOL_HDR := $(workdir)/tool_hdr
TOOL_HDR_PY := $(workdir)/tool_hdr_py

#
# 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.
#

$(cgidir)/p2p/.htaccess: 
	cp $(RTROOT)/config/p2p.htaccess $(cgidir)/p2p/.htaccess

$(cgidir)/%.cgi: $(TOPDIR)/$(PKGNAME)/%.py $(TOOL_HDR_PY) 
	( cat $(TOOL_HDR_PY) $< > $@; chmod +x $@ )

$(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
	( cp -p $< $@ )

$(cgidir)/p2p/%.cgi: $(TOPDIR)/$(PKGNAME)/%.py $(TOOL_HDR_PY)
	( cat $(TOOL_HDR_PY) $< > $@; chmod +x $@ )

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

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

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

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

$(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
	cp -p  $< $@

#
# 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) $(TOOL_HDR_PY):
#	cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3