[Bio] / Sprout / Makefile Repository:
ViewVC logotype

View of /Sprout/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (download) (annotate)
Thu Feb 16 01:16:29 2006 UTC (13 years, 9 months ago) by parrello
Branch: MAIN
Changes since 1.10: +4 -3 lines
An attempt to generatize the movement of XML files so they work for both Sprout and SimBlocks databases.

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

INSTALL_PACKAGE = FigKernelPackages

lib: html_doc lib_pm bin xml

html_doc: html_doc_dir $(foreach var, $(subst .pm,.html, $(PERLPACKAGES)), $(cgidir)/Html/pod_docs/$(var))


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))

$(RTROOT)/FIG/%.xml: %.xml
	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
	-$(FIG_HOME)/env/$(RTARCH)/bin/perl $(FIG_HOME)/env/$(RTARCH)/bin/pod2html --outfile $@ $<


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

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3