Skip to content

Commit

Permalink
generate region markers to ease reading Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Aug 17, 2020
1 parent 0f246b9 commit 91e6860
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/Makefile.template
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,7 @@
% endfor

<%def name="makelib(lib)">
# start of build recipe for library "${lib.name}" (generated by makelib(lib) template function)
LIB${lib.name.upper()}_SRC = \\

% for src in lib.src:
Expand Down Expand Up @@ -1410,9 +1411,11 @@
$(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
# end of build recipe for library "${lib.name}"
</%def>

<%def name="maketarget(tgt)"><% has_no_sources = not tgt.src %>
# start of build recipe for target "${tgt.name}" (generated by maketarget(tgt) template function)
% if not has_no_sources:
${tgt.name.upper()}_SRC = \\

Expand Down Expand Up @@ -1584,6 +1587,7 @@
$(OBJDIR)/$(CONFIG)/${os.path.splitext(src)[0]}.o: ${' '.join(proto_to_cc(src2) for src2 in tgt.src if proto_re.match(src2))}
% endif
% endfor
# end of build recipe for target "${tgt.name}"
</%def>

ifneq ($(OPENSSL_DEP),)
Expand Down

0 comments on commit 91e6860

Please sign in to comment.