Fixed it so that each source file has its own role.

This commit is contained in:
Tom Alexander 2023-03-21 14:20:33 -04:00
parent f8bce7e1a6
commit 8cfa40737a
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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 $< $@