aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/procinfo-exp.xml9
-rw-r--r--chapter06/procinfo-inst.xml2
2 files changed, 4 insertions, 7 deletions
diff --git a/chapter06/procinfo-exp.xml b/chapter06/procinfo-exp.xml
index fc880cb73..ecf3e6a7a 100644
--- a/chapter06/procinfo-exp.xml
+++ b/chapter06/procinfo-exp.xml
@@ -1,12 +1,9 @@
<sect2>
<title>Command explanations</title>
-<para><userinput>sed 's/-ltermcap/-lncurses/' Makefile | make -f -:</userinput>
-This will replace -ltermcap with -lncurses in the Makefile and pipe the
-output of sed (the modified Makefile) directly to the make program. This
-is an alternate and more efficient way to direct the output to a file
-and tell make to use that alternate file. We do this because libtermcap
-is declared obsolete in favor of libncurses.</para>
+<para><userinput>make LDLIBS=-lncurses :</userinput> This will use
+-lncurses instead of -ltermcap when building procinfo. This is done
+because libtermcap is declared obsolete in favor of libncurses.</para>
</sect2>
diff --git a/chapter06/procinfo-inst.xml b/chapter06/procinfo-inst.xml
index 213a230a8..73ac5d067 100644
--- a/chapter06/procinfo-inst.xml
+++ b/chapter06/procinfo-inst.xml
@@ -3,7 +3,7 @@
<para>Install Procinfo by running the following commands:</para>
-<para><screen><userinput>sed 's/-ltermcap/-lncurses/' Makefile | make -f - &amp;&amp;</userinput>
+<para><screen><userinput>make LDLIBS=-lncurses &amp;&amp;</userinput>
<userinput>make install</userinput></screen></para>
</sect2>