From 30be8708c544f1b6a0ebacf856915830c6b36d39 Mon Sep 17 00:00:00 2001 From: Sjoerd Mullender Date: Mon, 29 Jan 2001 09:39:14 +0000 Subject: [PATCH] Don't use $< in normal make rules: it's not portable. Using $< in inference rules (e.g. .c.o) is fine. --- Makefile.pre.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index 1395ab5ae94..46e1c5112ae 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 \