0
votes

I am new to windows make files.I am trying to understand a few things. How to run commands (DOS commands) from windows mk files. I ran the following command from cmd command prompt--

find testsuite 

and it gives proper output. Now I try to run the same from windows mk file as follows -- $(shell find testsuite). However, it gives error "FIND: Parameter format not correct". Is $(shell commandname ...) the correct way or if not what does $(shell...) indicate? Also how to capture the exit status of the command.Adding logline like below after the command doesn't print anything $(warning $(errorlevel)

1

1 Answers

1
votes

However, it gives error "FIND: Parameter format not correct".

This is Windows own find utility. It searches for strings in files, kind of grep without regexp :-(. So it requires at least two arguments.

Also how to capture the exit status of the command.

For $(shell ...) function it's in .SHELLSTATUS variable.