aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPA4WDH2023-05-20 22:49:21 +0200
committerPA4WDH2023-05-20 22:49:21 +0200
commit4ea89d03fc35f1a5e38427e2ee94951bf8bc1504 (patch)
treece88a11f552fad765080703d768375589a949b9a /Makefile
parentAdd validation and fallback to startup (diff)
downloadcputemp2maxfreq-4ea89d03fc35f1a5e38427e2ee94951bf8bc1504.tar.gz
cputemp2maxfreq-4ea89d03fc35f1a5e38427e2ee94951bf8bc1504.tar.bz2
cputemp2maxfreq-4ea89d03fc35f1a5e38427e2ee94951bf8bc1504.zip
Add automatic versioning
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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) $<