# Makefile for GR code # $Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/src/gr/makefile,v 1.8 2002-09-16 14:17:06 jthorn Exp $ # # Environment Variables: # MAPLE_VERSION used via @ifdef for version control in Maple code; # typically set to something like MAPLE_V_RELEASE_4 # (not presently used, but may be needed in the future) # # Targets: # cg ==> run all the *.mm files to generate C code # mm ==> preprocess all *.maple files to produce *.mm files # clean ==> delete *.mm (mpp Maple preprocessor output) # ifneq ($(MAPLE_VERSION),) MPP_FLAGS := -D$(MAPLE_VERSION) endif ############################################################################### .PHONY : cg cg : mm maple &1 | tee maple.log .PHONY : mm mm : $(patsubst %.maple, %.mm, $(wildcard *.maple)) %.mm : %.maple $(wildcard *.minc $(gfa_dir)/*.minc $(gfa_dir)/*.maple) ../misc/mpp $(MPP_FLAGS) <$< >$@ .PHONY : clean clean : -rm *.mm