Skip to content

Commit

Permalink
How about this
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeckmann committed Oct 31, 2024
1 parent 513f218 commit 4e55bf0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sw/n64/testrom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ testrom.z64: N64_ROM_TITLE = "PicoCart64 Test ROM"

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

$(BUILD_DIR):
mkdir -p $@
$(BUILD_DIR)/testrom.o: $(BUILD_DIR)/git_info.h

$(BUILD_DIR)/git_info.h:
mkdir -p $(BUILD_DIR)
echo -n "#define GIT_REV 0x" > $(BUILD_DIR)/git_info.h
git rev-parse --short=8 HEAD >> $(BUILD_DIR)/git_info.h
.PHONY: $(BUILD_DIR)
Expand Down

0 comments on commit 4e55bf0

Please sign in to comment.