]> granicus.if.org Git - python/commitdiff
Whoever added the Makefile rule to auto-build the Grammar didn't have
authorGuido van Rossum <guido@python.org>
Sat, 12 Aug 2000 14:45:50 +0000 (14:45 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 12 Aug 2000 14:45:50 +0000 (14:45 +0000)
his build directory in a different place than his source directory.  I
do, and it is supposed to be supported.  The naive patch caused an
endless recursion in the Make process.  This should take care of that.

Makefile.in

index 88f4efea472cfd646ec8efc6313bb3ea3daa9548..d4a063e56e422ae5eee9d1a3f0ad1c7720ea8ac8 100644 (file)
@@ -196,7 +196,8 @@ libpython$(VERSION).dylib: $(LIBRARY)
 $(SUBDIRS):    Makefiles
 
 Grammar:
-               cd Grammar ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
+               P=`pwd`/Parser; cd $(srcdir)/Grammar; $(MAKE) PGENDIR=$$P \
+                       OPT="$(OPT)" VERSION="$(VERSION)" \
                        prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
 
 Parser: