Does GNU do an alternative?

I would like to select all the files in the directory, but using FreeBSD make.

In GNU, this approach works:

FILES=$(wildcard *.c) 

I use FreeBSD make, not GNU make, so I'm looking for a command that will work in FreeBSD make.

As stated in the link below, FreeBSD has its own functions, but I cannot find them.

Generic Makefile not working on FreeBSD

+5
source share
1 answer

You can use != To execute a command on FreeBSD make . For instance:

 FILES!= ls *.c 

or if you also want to find files in subdirectories;

 FILES!= find . -type f -name '*.c' 
+4
source

Source: https://habr.com/ru/post/1216493/


All Articles