Fixed it so that each source file has its own role.
This commit is contained in:
parent
f8bce7e1a6
commit
8cfa40737a
@ -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 $< $@
|
||||
|
Loading…
Reference in New Issue
Block a user