gen_makefile.py: follow symlinks with find

Prepare for the next patch, with which {src_proj} may be a subdir in
osmocom-bb.

Change-Id: Ie15e74e61b16cef5e189e4e2a272b7d2061547c6
This commit is contained in:
Oliver Smith 2022-02-23 17:45:46 +01:00
parent ca0d2900be
commit 107f35d3da
1 changed files with 2 additions and 2 deletions

View File

@ -173,12 +173,12 @@ def gen_make(proj, deps, configure_opts, jobs, make_dir, src_dir, build_dir, url
return r'''
### {proj} ###
{proj}_configure_files := $(shell find {src_proj} \
{proj}_configure_files := $(shell find -L {src_proj} \
-name "Makefile.am" \
-or -name "*.in" \
-and -not -name "Makefile.in" \
-and -not -name "config.h.in" 2>/dev/null)
{proj}_files := $(shell find {src_proj} \
{proj}_files := $(shell find -L {src_proj} \
\( \
-name "*.[hc]" \
-or -name "*.py" \