From 259be0c174da2e860fbed320102e3808c03ecdcc Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 5 Feb 2012 23:50:49 +0700 Subject: [PATCH] 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. --- modules/modpython/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/modpython/Makefile.inc b/modules/modpython/Makefile.inc index 0eb09c88..f99e3d3c 100644 --- a/modules/modpython/Makefile.inc +++ b/modules/modpython/Makefile.inc @@ -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