# Makefile for maple code # $Id: Makefile,v 1.2 2001-06-15 09:45:03 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: # mm ==> preprocess all *.maple files to produce *.mm files # clean ==> delete *.mm (mpp Maple preprocessor output) # run ==> load all the code into Maple # ############################################################################### .PHONY : mm mm : $(patsubst %.maple, %.mm, $(wildcard *.maple)) %.mm : %.maple $(wildcard *.minc $(gfa_dir)/*.minc $(gfa_dir)/*.maple) mpp -D$(MAPLE_VERSION) <$< >$@ .PHONY : clean clean : -rm *.mm .PHONY : run run : mm maple -f maple.log