[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Repair path of VTEXI with non gnu-makes

From: Marc Espie
Subject: [PATCH] Repair path of VTEXI with non gnu-makes
Date: Fri, 15 Dec 2000 16:18:59 +0100
User-agent: Mutt/1.2.5i

When they encounter a set of rules such as:
a: b


most makes don't identify $(srcdir)/b as fitting for `b'.
Specifically, if $(srcdir)/b already exists, it will fullfill
the dependency as it is the right file, but target lookup won't
ever find it as a dependency.

As far as I could tell @VTEXI@ is always intended to be built in
the source directory, so the following patch allows it to be
correctly built with any make:

2000-12-15      Marc Espie <address@hidden>
        * (handle_texinfo): Make path of $vtexi explicit in
        * Likewise.

---    Fri Dec 15 04:18:32 2000
+++ Fri Dec 15 04:18:54 2000
@@ -2287,7 +2287,7 @@ sub handle_texinfo
        # dependency list.
        @texi_deps = ();
        push (@texi_deps, $info_cursor);
-       push (@texi_deps, $vtexi) if $vtexi;
+       push (@texi_deps, '$(srcdir)/'.$vtexi) if $vtexi;
        # Canonicalize name first.
        ($canonical = $infobase) =~ tr/A-Za-z0-9_/_/c;
---   Fri Dec 15 04:18:12 2000
+++        Fri Dec 15 04:18:22 2000
@@ -15,7 +15,7 @@
 ## along with this program; if not, write to the Free Software
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
-$(srcdir)/@VTEXI@: @address@hidden@VTI@
+$(srcdir)/@VTEXI@: @address@hidden(srcdir)/address@hidden@
 ## Depend on so that version number updates cause a

reply via email to

[Prev in Thread] Current Thread [Next in Thread]