Fix compilation of modpython.

After previous commit compiler.cpp depends on python headers, because it
includes them. Therefore g++ tries to write a depend file about them.
If there's no such dir .depend yet, it'll fail.

Thanks to SilverLeo for noticing this.
This commit is contained in:
Alexey Sokolov
2012-02-05 23:50:49 +07:00
parent bb666b0ab7
commit 259be0c174

View File

@@ -63,6 +63,8 @@ modpython/functions.cpp: modpython/functions.in modpython/codegen.pl
$(Q)$(PERL) $(srcdir)/modpython/codegen.pl $< $@
modpython/compiler.o: modpython/compiler.cpp Makefile
@mkdir -p modpython
@mkdir -p .depend
$(E) Building optimizer for python files...
$(Q)$(CXX) $(PYTHONCOMMON) -o $@ $< -c -MD -MF .depend/modpython.compiler.dep
modpython/compiler: modpython/compiler.o Makefile