[Bio] / Sprout / Makefile Repository:
ViewVC logotype

View of /Sprout/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (download) (annotate)
Mon Jan 19 21:48:04 2009 UTC (10 years, 10 months ago) by parrello
Branch: MAIN
CVS Tags: rast_rel_2009_05_18, rast_rel_2009_02_05, rast_rel_2009_03_26
Changes since 1.21: +16 -7 lines
Added javascript support. Removed support for DBD documentation, which is accomplished now in real-time instead of compile-time.

PERL = $(shell sed -ne 's/^RTPERL=\(.*\)/\1/p' $(RTROOT)/config/RTConfig)
RUNTIME_BINDIR = $(shell $(PERL) -MConfig -e 'print "$$Config{bin}\n"')
POD2HTML = $(PERL) $(RUNTIME_BINDIR)/pod2html
## POD2HTML = $(PERL) $(shell $(PERL) -MConfig -e 'print "$$Config{installbin}/pod2html\n"')
#POD2HTML = $(PERL) $(shell echo $(PERL) | sed 's/perl$$/pod2html/')

PERLPACKAGES := $(wildcard *.pm)
PERLSCRIPTS := $(wildcard *.pl)
ERDBS := $(wildcard *DBD.xml)
JAVASCRIPT := $(wildcard *.js)

INSTALL_PACKAGE = FigKernelPackages

lib: lib_pm bin xml search js htaccess

lib_pm:	$(foreach var, $(notdir $(PERLPACKAGES)), $(libdir)/$(INSTALL_PACKAGE)/$(var))

bin:	$(foreach var, $(subst .pl,,$(notdir $(PERLSCRIPTS))), $(bindir)/$(var))

xml:  $(foreach var, $(notdir $(ERDBS)), $(RTROOT)/FIG/$(var))

js: $(foreach var, $(notdir $(JAVASCRIPT)), $(cgidir)/Html/$(var))

search: $(cgidir)/NmpdrSearch.src $(cgidir)/NmpdrSearch.png

htaccess: $(cgidir)/.htaccess

$(RTROOT)/FIG/%.xml: %.xml
	-rm -f $@
	cp $< $@


schematools:
stDeclFiles:
stGeneratedFiles:

test:

clean:

html_doc_dir:
	if [ ! -d $(cgidir)/Html/pod_docs  ] ; then mkdir $(cgidir)/Html/pod_docs; fi

$(cgidir)/Html/pod_docs/%.html: $(TOPDIR)/$(PKGNAME)/%.pm
	-$(POD2HTML) --outfile $@ $<

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

$(cgidir)/%.src: $(TOPDIR)/$(PKGNAME)/%.src
	cp $< $@

$(cgidir)/%.png: $(TOPDIR)/$(PKGNAME)/%.png
	cp $< $@

$(cgidir)/Html/%.js: $(TOPDIR)/$(PKGNAME)/%.js
	cp $< $@

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

$(cgidir)/.htaccess: $(TOPDIR)/$(PKGNAME)/fig.htaccess
	cp $< $@

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3