diff --git a/Makefile b/Makefile index ba09373..b4b261b 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ build: mkdir -p build/obj build/obj/%.o: src/%.c config.mak - $(CC) $(CFLAGS) -Iinclude -c $< -o $@ + $(CC) $(CFLAGS) -DCOMMIT=$(shell git rev-list --count --all) -Iinclude -c $< -o $@ $(YAIT): $(YAIT_OBJS) $(CC) $(CFLAGS) -Iinclude -DCOMMIT=$(shell git rev-list --count --all) $^ -o $@ @@ -37,7 +37,7 @@ clean: $(RM) -r bin $(RM) -r build -dist-clean: clean +distclean: clean $(RM) config.mak .PHONY: all clean dist-clean install uninstall build diff --git a/tools/Cleanup b/tools/Cleanup index 1e0ae9b..53e9f96 100755 --- a/tools/Cleanup +++ b/tools/Cleanup @@ -16,6 +16,6 @@ fi sh ./tools/format || fatal Could not run './tools/format' rm -rf .cache || fatal Could not run 'rm -rf .cache' rm -f compile_commands.json || fatal Could not run 'rm -f compile_commands.json' -make dist-clean || fatal Could not run 'make dist-clean' +make distclean || fatal Could not run 'make dist-clean' echo done.