From: Sjoerd Mullender Date: Mon, 29 Jan 2001 09:39:14 +0000 (+0000) Subject: Don't use $< in normal make rules: it's not portable. Using $< in X-Git-Tag: v2.1a2~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30be8708c544f1b6a0ebacf856915830c6b36d39;p=thirdparty%2FPython%2Fcpython.git Don't use $< in normal make rules: it's not portable. Using $< in inference rules (e.g. .c.o) is fine. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 1395ab5ae94e..46e1c5112ae4 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -375,7 +375,7 @@ Modules/Setup: $(srcdir)/Modules/Setup.dist # Special rules for object files Modules/getbuildinfo.o: $(srcdir)/Modules/getbuildinfo.c buildno - $(CC) -c $(PY_CFLAGS) -DBUILD=`cat buildno` -o $@ $< + $(CC) -c $(PY_CFLAGS) -DBUILD=`cat buildno` -o $@ $(srcdir)/Modules/getbuildinfo.c Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile $(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \ @@ -383,10 +383,10 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile -DEXEC_PREFIX='"$(exec_prefix)"' \ -DVERSION='"$(VERSION)"' \ -DVPATH='"$(VPATH)"' \ - -o $@ $< + -o $@ $(srcdir)/Modules/getpath.c -Modules/ccpython.o: Modules/ccpython.cc - $(CXX) -c $(PY_CFLAGS) -o $@ $< +Modules/ccpython.o: $(srcdir)/Modules/ccpython.cc + $(CXX) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/ccpython.cc $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT) @@ -405,10 +405,10 @@ Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c Python/getplatform.o: $(srcdir)/Python/getplatform.c - $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $< + $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c Python/importdl.o: $(srcdir)/Python/importdl.c - $(CC) -c $(CFLAGS) -I$(DLINCLDIR) -o $@ $< + $(CC) -c $(CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \