gen_makefile.py: fix find errors

Don't print find errors if not all dirs were cloned. Found this also
while running osmo-dev on a fresh install.

Change-Id: I7955fedc96484e5703073b63906a03477452db6e
This commit is contained in:
Oliver Smith 2021-12-10 17:22:58 +01:00
parent aa015b1205
commit 84df01adb8
1 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ def gen_make(proj, deps, configure_opts, jobs, make_dir, src_dir, build_dir, url
-name "Makefile.am" \
-or -name "*.in" \
-and -not -name "Makefile.in" \
-and -not -name "config.h.in" )
-and -not -name "config.h.in" 2>/dev/null)
{proj}_files := $(shell find {src_proj} \
\( \
-name "*.[hc]" \
@ -186,7 +186,7 @@ def gen_make(proj, deps, configure_opts, jobs, make_dir, src_dir, build_dir, url
-or -name "*.tpl" \
-or -name "*.map" \
\) \
-and -not -name "config.h")
-and -not -name "config.h" 2>/dev/null)
.make.{proj}.clone:
@echo -e "\n\n\n===== $@\n"