summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwl <wl>2011-03-30 18:08:15 +0000
committerwl <wl>2011-03-30 18:08:15 +0000
commit9cfbda11df33635c0728eb33e04044e2e91fc681 (patch)
treecd9ac47cee024cbb4e4b4b402ebe51d8cfe3d9d4
parent5ccb6344ae2525f7697a7cac8af93950dbbf7b21 (diff)
downloadgroff-9cfbda11df33635c0728eb33e04044e2e91fc681.tar.gz
Fix build with non-GNU make.
* Makefile.in ($TARGETS): We must not pass `$MDEFINES' recursively down to the sub-makes started in src/libs/gnulib, because that directory has its own values for `$top_srcdir' etc., and overriding those from the command line will cause the build to fail. Currently, `$MAKEOVERRIDES' will prevent the recursive passing of those overrides with GNU make, but not with other make(1) implementations. It looks like all targets that require `$MDEFINES' set them explicitly anyway, so we shouldn't need to set `$MDEFINES' on the top level.
-rw-r--r--ChangeLog14
-rw-r--r--Makefile.in2
2 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 281b5801..81f6002c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2011-03-29 Christian Weisgerber <naddy@mips.inka.de>
+
+ Fix build with non-GNU make.
+
+ * Makefile.in ($TARGETS): We must not pass `$MDEFINES' recursively
+ down to the sub-makes started in src/libs/gnulib, because that
+ directory has its own values for `$top_srcdir' etc., and overriding
+ those from the command line will cause the build to fail.
+ Currently, `$MAKEOVERRIDES' will prevent the recursive passing of
+ those overrides with GNU make, but not with other make(1)
+ implementations. It looks like all targets that require `$MDEFINES'
+ set them explicitly anyway, so we shouldn't need to set `$MDEFINES'
+ on the top level.
+
2011-03-21 Jan Vcelak <jvcelak@redhat.com>
Bernd Warken
diff --git a/Makefile.in b/Makefile.in
index c610d213..c6b89419 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -689,7 +689,7 @@ subdir=src/roff/troff
$(TARGETS):
- @$(ENVSETUP); $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) do=$@ $(dodirs)
+ @$(ENVSETUP); $(MAKE) $(MAKE_K_FLAG) do=$@ $(dodirs)
dot: FORCE
@$(ENVSETUP); \