changeset 22870:f006715d846c

(REGEXPDEPS, regex.o): Prepend $(srcdir)/ to rule dependencies outside this dir.
author Richard M. Stallman <rms@gnu.org>
date Sun, 02 Aug 1998 00:24:15 +0000
parents 6eb4bc9083e8
children 52ecc33827e0
files lib-src/Makefile.in
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/Makefile.in	Sun Aug 02 00:22:31 1998 +0000
+++ b/lib-src/Makefile.in	Sun Aug 02 00:24:15 1998 +0000
@@ -59,6 +59,8 @@
 # script's `--srcdir' option.  However, the value of ${srcdir} in
 # this makefile is not identical to what was specified with --srcdir,
 # since the variable here has `/lib-src' added at the end.
+
+# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
 srcdir=@srcdir@
 VPATH=@srcdir@
 
@@ -351,10 +353,10 @@
 REGEXPDEPS =
 #else
 REGEXPOBJ = regex.o
-REGEXPDEPS = $(REGEXPOBJ) ../src/regex.h
+REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
 #endif
 
-regex.o: ../src/regex.c ../src/regex.h ../src/config.h
+regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
 	${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
 
 etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h