Revision c59234914a80773a2b9b69b63279df4dddff34ad authored by Eh Tan on 26 April 2007, 01:19 UTC, committed by Eh Tan on 26 April 2007, 01:19 UTC
1 parent 74e1fe0
Raw File
Make.mm
# -*- Makefile -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#                               Michael A.G. Aivazis
#                        California Institute of Technology
#                        (C) 1998-2002  All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#

include local.def

PROJECT = CitcomS

# directory structure

DIR_LIB = lib
DIR_DRIVERS = drivers
DIR_MODULE = module
DIR_PYRE = pyre
DIR_TESTS = tests
DIR_EXAMPLES = examples


BUILD_DIRS = \
    $(DIR_LIB) \
    $(DIR_DRIVERS) \
    $(DIR_MODULE) \
    $(DIR_PYRE) \

OTHER_DIRS = \
    $(DIR_TESTS) \
    $(DIR_EXAMPLES)

RECURSE_DIRS = $(BUILD_DIRS) $(OTHER_DIRS)

# targets

all: update

update: $(BUILD_DIRS)

release: tidy
	cvs release .

test: update
	(cd $(DIR_TESTS); $(MM) test)

.PHONY: $(DIR_LIB)
$(DIR_LIB):
	(cd $(DIR_LIB); $(MM))


.PHONY: $(DIR_DRIVERS)
$(DIR_DRIVERS):
	(cd $(DIR_DRIVERS); $(MM))


.PHONY: $(DIR_MODULE)
$(DIR_MODULE):
	(cd $(DIR_MODULE); $(MM))


.PHONY: $(DIR_PYRE)
$(DIR_PYRE):
	(cd $(DIR_PYRE); $(MM))


.PHONY: $(DIR_TESTS)
$(DIR_TESTS):
	(cd $(DIR_TESTS); $(MM))


.PHONY: $(DIR_EXAMPLES)
$(DIR_EXAMPLES):
	(cd $(DIR_EXAMPLES); $(MM))


tidy::
	BLD_ACTION="tidy" $(MM) recurse

clean::
	BLD_ACTION="clean" $(MM) recurse
	$(RM) $(RMFLAGS) $(BLD_TMPDIR)/$(PROJECT) $(BLD_LIBDIR)/$(PROJECT)

distclean::
	BLD_ACTION="distclean" $(MM) recurse


# version
# $Id: Make.mm,v 1.1.1.1 2003/03/24 01:46:37 tan2 Exp $

#
# End of file
back to top