From 91a796d2cc33820db6caad8674d255f68c11e4bd Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 26 Dec 2024 16:58:26 +0100 Subject: [PATCH] Fixing words.txt target --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e95f681..c9fa133 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,8 @@ main.elf: $(OBJ) | words.txt test.elf: ordle.cc test/test.cc @$(CXX) $(CXXFLAGS) $^ -o $@ -words.txt: - cat /usr/share/dict/words > words.txt +words.txt: /usr/share/dict/words + cat $< > $@ %.o:%.cc @echo "Building $@" @@ -50,4 +50,4 @@ format: clean: rm -f *.o *.elf words.txt -.PHONY: clean all lint clang-tidy cppcheck format words.txt +.PHONY: clean all lint clang-tidy cppcheck format