1 # Use the following to customize flags to gen_gress
2 GEN_GRESS_FLAGS = -p /bin:$(dir $(shell which $(firstword $(MAKE)))):$(GRESS_BIN)
4 # gress.mak has the following useful targets
6 # Runs run_gress with argument $(DIR), which defaults to '*'.
7 # Run make with DIR='arg(s)' to change what run_gress does.
8 # Makes sure the .sh files associated with all the .re files
9 # for the run_gress arguments are up to date.
11 # Builds <dir>/<file>.sh from <dir>/<file>.job
13 # Builds <dir>/<file>.out by running <dir>/<file>.sh if there are
14 # changes to <dir>/<file>.sh, or any files in the <dir>/init or
15 # ../../bin directories.
17 # Builds <dir>/<file>.re from <dir>/<file>.out and either
18 # ./elide.prl or ../elide.prl (if they exist).
20 # Deletes .log, .plog, <dir>/<file>.out and depends.mak files
21 # and everything under <dir>/rundir.
23 # Deletes everything clean does plus any <dir>/*.sh files.
25 GRESS_LIB = $(GRESS_DIR)/lib
26 GRESS_BIN = $(GRESS_DIR)/bin
27 include $(GRESS_LIB)/gress.mak
29 .PRECIOUS: DIRECT.t/%.sh
30 .PRECIOUS: NEW_DIRECT.t/%.sh
31 .PRECIOUS: PARSE.t/%.sh
32 .PRECIOUS: XFORM.t/%.sh
34 DIRECT.t/%.sh: DIRECT.tjob
35 $(GRESS_BIN)/gen_gress -s $(notdir $*).dir -i $(notdir $*).init $(GEN_GRESS_FLAGS) $< > $@; \
37 NEW_DIRECT.t/%.sh: NEW_DIRECT.tjob
38 $(GRESS_BIN)/gen_gress -s $(notdir $*).dir -i $(notdir $*).init $(GEN_GRESS_FLAGS) $< > $@; \
41 PARSE.t/%.sh: PARSE.tjob
42 $(GRESS_BIN)/gen_gress -s $(notdir $*).dir -i $(notdir $*).init $(GEN_GRESS_FLAGS) $< > $@; \
45 XFORM.t/%.sh: XFORM.tjob
46 $(GRESS_BIN)/gen_gress -s $(notdir $*).dir -i $(notdir $*).init $(GEN_GRESS_FLAGS) $< > $@; \