diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-04-24 17:44:30 -0700 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-04-24 17:44:30 -0700 |
commit | eae6973b00b45faf2c33604ad513000716092dd9 (patch) | |
tree | 1017441e43477716f2b692d3087b238e71ce9e62 /templates/Makefile.template | |
parent | fa74ec46174405fc03216e77ac9628a6c6ff7d27 (diff) | |
parent | 04f8156f658b06166f1e0111a9da0245b03a1de6 (diff) |
Merge pull request #1366 from ctiller/mwha
A little Makefile spring cleaning
Diffstat (limited to 'templates/Makefile.template')
-rw-r--r-- | templates/Makefile.template | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/templates/Makefile.template b/templates/Makefile.template index 9ca55f4f24..ab137a8657 100644 --- a/templates/Makefile.template +++ b/templates/Makefile.template @@ -1208,18 +1208,11 @@ endif % if lib.get('secure', 'check') == 'yes' or lib.get('secure', 'check') == 'check': endif % endif - % for src in lib.src: -% if not proto_re.match(src): -$(OBJDIR)/$(CONFIG)/${os.path.splitext(src)[0]}.o: \ -% for src2 in lib.src: -% if proto_re.match(src2): - ${proto_to_cc(src2)}\ +% if not proto_re.match(src) and any(proto_re.match(src2) for src2 in lib.src): +$(OBJDIR)/$(CONFIG)/${os.path.splitext(src)[0]}.o: ${' '.join(proto_to_cc(src2) for src2 in lib.src if proto_re.match(src2))} % endif % endfor -% endif - -% endfor </%def> <%def name="maketarget(tgt)"> |