From 95fe88a5f426e6b1bc0f821a083ead0ba943b0a8 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 21 Mar 2023 14:32:26 -0400 Subject: [PATCH] Make all the makefiles recursive. --- org_mode_samples/exit_matcher_investigation/Makefile | 1 - org_mode_samples/plain_lists/Makefile | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org_mode_samples/exit_matcher_investigation/Makefile b/org_mode_samples/exit_matcher_investigation/Makefile index 96ec59d..c47a86c 100644 --- a/org_mode_samples/exit_matcher_investigation/Makefile +++ b/org_mode_samples/exit_matcher_investigation/Makefile @@ -4,7 +4,6 @@ SHELL := bash .DELETE_ON_ERROR: MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --no-builtin-rules -OUT=out SRCFILES := $(wildcard *.org) OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) diff --git a/org_mode_samples/plain_lists/Makefile b/org_mode_samples/plain_lists/Makefile index 61a8d82..c47a86c 100644 --- a/org_mode_samples/plain_lists/Makefile +++ b/org_mode_samples/plain_lists/Makefile @@ -4,7 +4,8 @@ SHELL := bash .DELETE_ON_ERROR: MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --no-builtin-rules -OUT=out +SRCFILES := $(wildcard *.org) +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) @@ -12,11 +13,11 @@ endif .RECIPEPREFIX = > .PHONY: all -all: paragraphs.tree.txt nested_paragraphs.tree.txt +all: $(OUTFILES) .PHONY: clean clean: -> rm -rf *.tree.txt +> rm -rf $(OUTFILES) %.tree.txt: %.org ../common.el ../dump_org_ast.bash > ../dump_org_ast.bash $< $@