[Bio] / ClusterTools / Makefile Repository:
ViewVC logotype

View of /ClusterTools/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (annotate)
Sat Feb 26 20:10:21 2005 UTC (14 years, 8 months ago) by olson
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
More fixes.

#
#
# Needs to disambiguate perl/py.  Would Ross let us put on suffix
# like .pl and .py if the build step removed the suffix in making the
# executable?
#
# We need a better config mechanism than the hardwired path to FigCommon
#

# I'd like ref's to other packages to go away, but for now:

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

CC =  $(shell $(PERL) -e 'use Config; print $$Config{cc}')
CFLAGS = $(shell $(PERL) -e 'use Config; print $$Config{ccflags}') -O


PERLBINSCRIPTS := $(subst .pl,,$(wildcard *.pl))
PYBINSCRIPTS := $(subst .py,,$(wildcard *.py))

COMPILED_CODE = 

INSTPERL = $(foreach var, $(PERLBINSCRIPTS), $(bindir)/$(var))
INSTPY = $(foreach var, $(PYBINSCRIPTS), $(bindir)/$(var))

INST_COMPILED =  $(foreach var, $(COMPILED_CODE), $(bindir)/$(var))

lib:

bin:	install_compiled $(INSTPERL) $(INSTPY)

schematools:
stDeclFiles:
stGeneratedFiles:


test:

clean:

install_compiled: $(COMPILED_CODE)
	for i in $(COMPILED_CODE); do \
		cp $$i $(bindir)/$$i;  \
	done


%: %.c
	$(CC) $(CFLAGS) -o $@ $<

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

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

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



MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3