From 8cfa40737aec13cc8c1c402780e7b1a45d79c15d Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 21 Mar 2023 14:20:33 -0400 Subject: [PATCH] Fixed it so that each source file has its own role. --- org_mode_samples/exit_matcher_investigation/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org_mode_samples/exit_matcher_investigation/Makefile b/org_mode_samples/exit_matcher_investigation/Makefile index e11870d..96ec59d 100644 --- a/org_mode_samples/exit_matcher_investigation/Makefile +++ b/org_mode_samples/exit_matcher_investigation/Makefile @@ -6,7 +6,7 @@ MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --no-builtin-rules OUT=out SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.org.tree.txt,$(SRCFILES)) +OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) ifeq ($(origin .RECIPEPREFIX), undefined) $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) @@ -14,11 +14,11 @@ endif .RECIPEPREFIX = > .PHONY: all -all: ../common.el ../dump_org_ast.bash $(SRCFILES) -> for f in $(SRCFILES); do -> ../dump_org_ast.bash $$f $$f.tree.txt; \ -> done +all: $(OUTFILES) .PHONY: clean clean: > rm -rf $(OUTFILES) + +%.tree.txt: %.org ../common.el ../dump_org_ast.bash +> ../dump_org_ast.bash $< $@