gen_makefile: tweak edit detector

Change-Id: I6a1753e24b29226894fdfcac8132910501a633b8
This commit is contained in:
Neels Hofmeyr 2017-08-28 15:16:18 +02:00
parent feed50b49c
commit 2509d09ddf
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ def gen_make(proj, deps, configure_opts, jobs, make_dir, src_dir, build_dir, url
.PHONY: .make.{proj}.detect_edits
.make.{proj}.detect_edits:
@test -z "$(shell find {src_proj} -newer .make.{proj}.last_edited -name "*.[hc]")" || (touch .make.{proj}.last_edited; echo {proj} edited)
@test -z "$(shell find {src_proj} -newer .make.{proj}.last_edited -name "*.[hc]" '(' -name "*.[hc]" -or -name "Makefile.am" -or -name "*.py" ')' )" || (touch .make.{proj}.last_edited; echo {proj} edited)
.make.{proj}.build: .make.{proj}.configure .make.{proj}.last_edited
@echo "\n\n\n===== $@\n"