From 049ba5c9666117fe30ad657343cd557d415df1ef Mon Sep 17 00:00:00 2001 From: Philip Kaludercic <philip.kaludercic@fau.de> Date: Thu, 11 Jan 2024 11:00:48 +0100 Subject: [PATCH] Reorganise Makefile to avoid using a intermediate file --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b85d8bf..0f5f9c8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,11 @@ QFILES != find . -name '[ws]s[[:digit:]][[:digit:]].q' -type f -sp.json: sp.q - ./gen.pl $< > $@ +.PHONY: all +all: sp.json -sp.q: $(QFILES) - cat $^ > $@ +sp.json: $(QFILES) + ./gen.pl $^ > $@ + +.PHONY: clean +clean: + rm -f sp.json -- GitLab