Make all the makefiles recursive.

This commit is contained in:
Tom Alexander 2023-03-21 14:32:26 -04:00
parent 8cfa40737a
commit 95fe88a5f4
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,6 @@ SHELL := bash
.DELETE_ON_ERROR: .DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules MAKEFLAGS += --no-builtin-rules
OUT=out
SRCFILES := $(wildcard *.org) SRCFILES := $(wildcard *.org)
OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES))

View File

@ -4,7 +4,8 @@ SHELL := bash
.DELETE_ON_ERROR: .DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules MAKEFLAGS += --no-builtin-rules
OUT=out SRCFILES := $(wildcard *.org)
OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES))
ifeq ($(origin .RECIPEPREFIX), undefined) ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
@ -12,11 +13,11 @@ endif
.RECIPEPREFIX = > .RECIPEPREFIX = >
.PHONY: all .PHONY: all
all: paragraphs.tree.txt nested_paragraphs.tree.txt all: $(OUTFILES)
.PHONY: clean .PHONY: clean
clean: clean:
> rm -rf *.tree.txt > rm -rf $(OUTFILES)
%.tree.txt: %.org ../common.el ../dump_org_ast.bash %.tree.txt: %.org ../common.el ../dump_org_ast.bash
> ../dump_org_ast.bash $< $@ > ../dump_org_ast.bash $< $@