Correctly add dependencies and build rules for Modules/python.o.
This commit is contained in:
parent
2c69336507
commit
370a0837d1
@ -166,7 +166,7 @@ LIBRARY= libpython$(VERSION).a
|
|||||||
all: $(LIBRARY) python sharedmods
|
all: $(LIBRARY) python sharedmods
|
||||||
|
|
||||||
# Build the interpreter
|
# Build the interpreter
|
||||||
python: $(LIBRARY) buildno
|
python: $(LIBRARY) buildno Modules/python.o
|
||||||
expr `cat buildno` + 1 >buildno1
|
expr `cat buildno` + 1 >buildno1
|
||||||
mv -f buildno1 buildno
|
mv -f buildno1 buildno
|
||||||
$(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
|
$(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
|
||||||
@ -178,6 +178,9 @@ python: $(LIBRARY) buildno
|
|||||||
prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
|
prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
|
||||||
LIBRARY=../$(LIBRARY) link
|
LIBRARY=../$(LIBRARY) link
|
||||||
|
|
||||||
|
Modules/python.o: $(srcdir)/Modules/python.c
|
||||||
|
cd Modules; $(MAKE) OPT="$(OPT)" python.o
|
||||||
|
|
||||||
buildno:
|
buildno:
|
||||||
echo 0 >buildno
|
echo 0 >buildno
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user