1 year ago
#198891
KcFnMi
How to use make / jom / nmake on Windows?
I'm trying to get the git commit id at build time with make on Windows.
On Linux Debian I can do it with
var := $(shell git rev-parse --verify master)
all:
echo ${var} > file.txt
cat file.txt
But on Windows 10 I get:
Error: Invalid macro invocation found in Makefile line 4
I'm using jom (a clone of nmake) which came with Qt 5.15 version.
Is it possible to do that with jom/nmake?
windows
makefile
gnu-make
nmake
0 Answers
Your Answer