# HG changeset patch # User Richard M. Stallman # Date 902017455 0 # Node ID f006715d846c7d0d9b99aa87a8f4fe2977b3de02 # Parent 6eb4bc9083e85d2cbae8840ac89f78d5baff0f42 (REGEXPDEPS, regex.o): Prepend $(srcdir)/ to rule dependencies outside this dir. diff -r 6eb4bc9083e8 -r f006715d846c lib-src/Makefile.in --- 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