]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Old notes about VPATH.
authorBruno Haible <bruno@clisp.org>
Mon, 17 Feb 2003 19:41:40 +0000 (19:41 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:06 +0000 (12:10 +0200)
Admin/vpath [new file with mode: 0644]

diff --git a/Admin/vpath b/Admin/vpath
new file mode 100644 (file)
index 0000000..e8a13f9
--- /dev/null
@@ -0,0 +1,18 @@
+Q: gettext's Makefiles don't support VPATH.
+
+A: It's some vendors' "make" which doesn't support VPATH.
+
+   1) GNU make supports VPATH with both .c.o and %.o:%.c rules.
+
+   2) Solaris make should not be used with VPATH at all, as it randomly
+      changes Makefile variables.
+
+   3) FreeBSD make does not support %.o:%.c rules at all. For the
+      remaining .c.o rules VPATH is taken into account. For
+      additional dependencies like "foo.o : bar.c" it is not.
+
+   Since %.o:%.c rules are not portable, GNU package Makefiles
+   shouldn't use them. Only .c.o rules. And then gettext's Makefiles
+   should work with GNU make and with FreeBSD make. But Solaris make
+   is not supportable with VPATH.
+