Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automake: use POSIX make syntax #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions chapters/automake/nonrecursive.xmli
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pkgconfig/foo.pc pkgconfig/foo-bar.pc
%-bar.pc: %.pc
$(LN_S) $^ $@
$(LN_S) $< $@
]]></programlisting>

<para>
Expand All @@ -235,9 +235,8 @@ pkgconfig_DATA = pkgconfig/foo.pc pkgconfig/foo-bar.pc
</para>

<para>
To avoid this kind of problem, you can make use of
<application>GNU make</application> extended functions in the
rules, to transform the path from full-relative form to base
To avoid this kind of problem, you can make use of the alternative
forms to transform the path from full-relative form to base
form (without the path). For instance the fragment above should
be replaced by the following:
</para>
Expand All @@ -247,7 +246,7 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pkgconfig/foo.pc pkgconfig/foo-bar.pc
%-bar.pc: %.pc
$(LN_S) $(notdir $^) $@
$(LN_S) $(<F) $@
]]></programlisting>
</section>
</section>
Expand Down
2 changes: 1 addition & 1 deletion chapters/automake/silent.xmli
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])

<programlisting><![CDATA[
%-bar.pc: %.pc
$(AM_V_GEN)$(LN_S) $(notdir $^) $@
$(AM_V_GEN)$(LN_S) $(<F) $@
]]></programlisting>
</example>
</section>
Expand Down
Loading