Skip to content

Commit 4e55bf0

Browse files
committed
How about this
1 parent 513f218 commit 4e55bf0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sw/n64/testrom/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ testrom.z64: N64_ROM_TITLE = "PicoCart64 Test ROM"
2323

2424
$(BUILD_DIR)/testrom.elf: $(OBJS) | $(BUILD_DIR)
2525

26-
$(BUILD_DIR):
27-
mkdir -p $@
26+
$(BUILD_DIR)/testrom.o: $(BUILD_DIR)/git_info.h
27+
28+
$(BUILD_DIR)/git_info.h:
29+
mkdir -p $(BUILD_DIR)
2830
echo -n "#define GIT_REV 0x" > $(BUILD_DIR)/git_info.h
2931
git rev-parse --short=8 HEAD >> $(BUILD_DIR)/git_info.h
3032
.PHONY: $(BUILD_DIR)

0 commit comments

Comments
 (0)