[Bio] / PPO / Makefile Repository:
ViewVC logotype

View of /PPO/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (download) (annotate)
Thu Jul 26 19:39:05 2007 UTC (12 years, 6 months ago) by parrello
Branch: MAIN
Changes since 1.2: +7 -7 lines
Converted cp -p to cp to avoid a problem with makefiles.

#
#
#

PERLPACKAGES := $(wildcard *.pm) \
		$(wildcard PPOBackend/*.pm)
PYPACKAGES := $(wildcard *.py)

lib: lib_perl lib_py html_doc

lib_perl:	$(foreach var, $(PERLPACKAGES), $(libdir)/$(PKGNAME)/$(var))
lib_py:	$(foreach var, $(PYPACKAGES), $(libdir)/$(PKGNAME)/$(var))

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

bin:

schematools:
stDeclFiles:
stGeneratedFiles:


test:

clean:

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

$(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm
	tgt_dir=`dirname $@`;  \
	if [ ! -d $$tgt_dir ] ; then \
		mkdir $$tgt_dir; \
	fi
	cp  $< $@

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

$(cgidir)/Html/pod_docs/%.html: $(TOPDIR)/$(PKGNAME)/%.pm
	-$(FIG_HOME)/env/$(RTARCH)/bin/perl $(FIG_HOME)/env/$(RTARCH)/bin/pod2html --outfile $@ $<

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

#$(workdir)/FIG_Config.pm:
#	cd $(workdir); $(TOPDIR)/FigCommon/configure-env $(RTARCH) $(TOPDIR)

$(libdir)/$(PKGNAME)/%.pm: $(workdir)/%.pm
	cp  $< $@
$(libdir)/$(PKGNAME)/%.py: $(workdir)/%.py
	cp  $< $@


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3