From 2b9c4e897eeb8a159964282ccf79239ecf4ed98d Mon Sep 17 00:00:00 2001 From: Neko-vecter Date: Thu, 30 Nov 2023 19:41:01 +0800 Subject: [PATCH 1/3] fix: fix `make install` missing file File Change: - Makefile Fix the missing `version.h` file when using `make install` directly. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d955d4..642c37b 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ version: %: cmd/% $(TARGET_OBJS) $(CCACHE) $(CXX) $(CFLAGS) -o $@ $(filter-out cmd/%, $^) $(filter $ Date: Thu, 30 Nov 2023 20:30:46 +0800 Subject: [PATCH 2/3] fix: update change File Change: - Makefile move `version` to line 86 ``` %: version cmd/% $(TARGET_OBJS) ``` --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 642c37b..5e7d427 100644 --- a/Makefile +++ b/Makefile @@ -83,10 +83,10 @@ version: diff -u version.h version.h.tmp || mv version.h.tmp version.h -rm -f version.h.tmp -%: cmd/% $(TARGET_OBJS) +%: version cmd/% $(TARGET_OBJS) $(CCACHE) $(CXX) $(CFLAGS) -o $@ $(filter-out cmd/%, $^) $(filter $ Date: Fri, 1 Dec 2023 01:06:42 +0800 Subject: [PATCH 3/3] fix: fix `make install` missing file File Change: - Makefile Fix the missing `version.h` file when using `make install` directly. move this to `%: cmd/% $(TARGET_OBJS)` not working. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5e7d427..642c37b 100644 --- a/Makefile +++ b/Makefile @@ -83,10 +83,10 @@ version: diff -u version.h version.h.tmp || mv version.h.tmp version.h -rm -f version.h.tmp -%: version cmd/% $(TARGET_OBJS) +%: cmd/% $(TARGET_OBJS) $(CCACHE) $(CXX) $(CFLAGS) -o $@ $(filter-out cmd/%, $^) $(filter $