gen_makefile.py: reformat find cmds in Makefile

Change-Id: Ic2fad22fdbf0fec4abfaeae60b4ebd74563a9392
This commit is contained in:
Oliver Smith 2021-10-04 12:55:44 +02:00
parent 04f805ebe8
commit 505f60de3d
1 changed files with 11 additions and 2 deletions

View File

@ -167,8 +167,17 @@ 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} -name "Makefile.am" -or -name "*.in" -and -not -name "Makefile.in" -and -not -name "config.h.in" )
{proj}_files := $(shell find {src_proj} -name "*.[hc]" -or -name "*.py" -or -name "*.cpp" -or -name "*.tpl" -or -name "*.map")
{proj}_configure_files := $(shell find {src_proj} \
-name "Makefile.am" \
-or -name "*.in" \
-and -not -name "Makefile.in" \
-and -not -name "config.h.in" )
{proj}_files := $(shell find {src_proj} \
-name "*.[hc]" \
-or -name "*.py" \
-or -name "*.cpp" \
-or -name "*.tpl" \
-or -name "*.map")
.make.{proj}.clone:
@echo -e "\n\n\n===== $@\n"