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

[patches] [PATCH] make texis in $(objpfx) not in srcdir



This is a pretty trivial patch.

Rationale: The texis file might genuinely change from one install to another, so it's reasonable to rebuild it -- we don't just want to suppress it or provide a precalculated prebuilt.

But!

Rebuilding it in the source directory could cause problems with multiple builds running at once from a single source directory using the $(objdir) feature.

This trivial patch has been lightly tested and does produce the expected behavior.

(I have a notion of trying to patch this for the configure fragments, but it looks as though fixing that would be large and non-trivial, so I'm inclined to pass.)

Sorry if the formatting busts this one, but it really is that simple, so it should be okay.

--- glibc-2.8.orig/manual/Makefile      2009-08-28 11:42:43.000000000 -0700
+++ glibc-2.8/manual/Makefile   2009-08-28 11:42:57.000000000 -0700
@@ -62,8 +62,8 @@
 appendices = lang.texi header.texi install.texi maint.texi contrib.texi \
             freemanuals.texi

--include texis
-texis: texis.awk $(chapters) $(add-chapters) $(appendices) lesser.texi fdl.texi
+-include $(objpfx)texis
+$(objpfx)texis: texis.awk $(chapters) $(add-chapters) $(appendices) lesser.texi fdl.texi
        $(AWK) -f $^ > $@.T
        mv -f $@.T $@

--
Listen, get this. Nobody, with a good compiler, needs to be justified.