diff options
author | Barry Warsaw <barry@python.org> | 2005-12-19 14:43:44 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2005-12-19 14:43:44 (GMT) |
commit | ce3a9131c37dc8e968156864e73e1ff544cf7ece (patch) | |
tree | 2b1d901f60cc59e8b71eafa7827efb5febfe8b0c /Makefile.pre.in | |
parent | 4ac13dfc3ad35ebbf9760d6e119b7f8220c52ce5 (diff) | |
download | cpython-ce3a9131c37dc8e968156864e73e1ff544cf7ece.zip cpython-ce3a9131c37dc8e968156864e73e1ff544cf7ece.tar.gz cpython-ce3a9131c37dc8e968156864e73e1ff544cf7ece.tar.bz2 |
Revert most of r41765. Don't use $Revision$ in Py_GetBuildNumber(). Keep the
use of $(srcdir) in Makefile.pre.in so builds outside the source dir still
work.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 020c86e..80fc894 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -351,7 +351,10 @@ buildno: $(PARSER_OBJS) \ $(srcdir)/Modules/getbuildinfo.c if test -d $(srcdir)/.svn; then \ svnversion $(srcdir) >buildno; \ - fi + elif test -f buildno; then \ + expr `cat buildno` + 1 >buildno1; \ + mv -f buildno1 buildno; \ + else echo 1 >buildno; fi # Build static library # avoid long command lines, same as LIBRARY_OBJS @@ -443,11 +446,7 @@ Modules/Setup: $(srcdir)/Modules/Setup.dist # Special rules for object files Modules/getbuildinfo.o: $(srcdir)/Modules/getbuildinfo.c buildno - if test -f buildno; then \ - $(CC) -c $(PY_CFLAGS) -DBUILD=\"`cat buildno`\" -o $@ $(srcdir)/Modules/getbuildinfo.c ;\ - else \ - $(CC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/getbuildinfo.c ;\ - fi + $(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)"' \ |