This commit is contained in:
2025-07-20 15:50:48 -04:00
parent 5ea2f16ba9
commit 41cfafbaf0
10 changed files with 221 additions and 66 deletions

View File

@@ -22,10 +22,9 @@ build:
c-out/obj/%.o: yait/%.c
$(CC) $(CFLAGS) -c $< -o $@
$(YAIT): $(YAIT_OBJS)
$(YAIT): $(YAIT_OBJS) $(EMBED_HEADER)
$(CC) $(CFLAGS) -DCOMMIT=$(shell git rev-list --count --all) $^ -o $@
endif
install:
@@ -38,8 +37,10 @@ uninstall:
clean:
rm -rf c-out
rm -f $(EMBED_HEADER)
rm -f $(EMBED_HEADERS)
dist-clean: clean
rm -f config.mak
.PHONY: all clean dist-clean install uninstall build format
.PHONY: all clean dist-clean install uninstall build format gen-file-embeds