From 4ea89d03fc35f1a5e38427e2ee94951bf8bc1504 Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Sat, 20 May 2023 22:49:21 +0200 Subject: Add automatic versioning --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 335d067..efcb459 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ -cputemp2maxfreq: debug.o sysfs.o cpufreq.o failsafe.o +cputemp2maxfreq: version.h debug.o sysfs.o cpufreq.o failsafe.o + +version.h: generate_version_h.sh .git/index + ./generate_version_h.sh > version.h %.o: %.c %.h debug.h $(COMPILE.c) $(OUTPUT_OPTION) $< -- cgit v1.2.3