Re: GNU Make app and right text output with echo
On Sat, 2022-02-19 at 17:40 +0200, Eli Zaretskii wrote: > > From: > > Date: Sat, 19 Feb 2022 14:25:47 +0100 (CET) > > > > Problem is wisible on follow example of file Makefile.win: > > > > all : > > echo $(pkg-config --libs glib-2.0) > > This is wrong, you want > > all : > echo $(shell pkg-config --libs glib-2.0) > > The 'shell' function is missing. For questions like this you probably want the help-m...@gnu.org mailing list FYI. I think the best solution is to escape the "$" so it's passed to the shell rather than interpreted by make; using the shell function in recipes is to be discouraged IMO. So use: all : echo $$(pkg-config --libs glib-2.0) This of course assumes that all other aspects of this system are set up correctly: running POSIX operations like this on a Windows system typically requires a lot of other configuration.
Re: GNU Make app and right text output with echo
> From: > Date: Sat, 19 Feb 2022 14:25:47 +0100 (CET) > > Problem is wisible on follow example of file Makefile.win: > > all : > echo $(pkg-config --libs glib-2.0) This is wrong, you want all : echo $(shell pkg-config --libs glib-2.0) The 'shell' function is missing.
GNU Make app and right text output with echo
Hello, i don't know how gnu make works, but i ghave problem with one example of Makefile code, under windows, using MSYS2 tool. I have tried two make applications. Classical make.exe and mingw32.make. Problem is wisible on follow example of file Makefile.win: all : echo $(pkg-config --libs glib-2.0) #-> It shows only command echo and, nothing next. My ideal output is (from bash shell): echo $(pkg-config --libs glib-2.0) -LC:/Apps/msys2/mingw64/lib -lglib-2.0 -lintl BUT! Your gnu make tool this output not generate. Why? Thanks Filip, Nice Day!
make re-exec regression in 'make -sf -' mode
Noticed the regression on lowdown-0.10.0 upstream package. Here is a complete trigger: $ printf 'all:\n\techo $(CC)' | make -sf - [good] GNU make 4.3 works as expected: $ printf 'all:\n\techo $(CC)' | make -sf - cc [bad] GNU make from git loops indefinitely in re-execution: $ printf 'all:\n\techo $(CC)' | ./make -sf - Curiously space separation workaround is enough to get the result: $ printf 'all:\n\techo $(CC)' | ./make -s -f - cc Bitsect points at commit 7c4e6b0299 "[SV 60595] Restart whenever any makefile is rebuilt". -- Sergei