bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #51309] Determination of a file list from a single folder witho


From: Henrik Carlqvist
Subject: Re: [bug #51309] Determination of a file list from a single folder without changing the working directory
Date: Sun, 25 Jun 2017 20:31:04 +0200

> I came along the need to query a single folder without changing the
> working directory so that only file names (without folder names) will be
> in the result. 

The easiest way to accomplish such a thing is probably to use the notdir
function:

MY_FILES=$(notdir $(wildcard somedir/*.ext))

See also the documentation of notdir at
https://www.gnu.org/software/make/manual/html_node/File-Name-Functions.html

regards Henrik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]