Permalink
Browse files

Fix dependencies between modpython parts.

  • Loading branch information...
1 parent 289cfa5 commit 9e33e4bf5968f85a86f6541ae8d6b40ce61e7c27 Alexey Sokolov committed with kylef Aug 13, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 modules/modpython/Makefile.inc
@@ -35,7 +35,7 @@ modpython_all: modpython/_znc_core.so modpython/swigpyrun.h modpython/znc.pyc mo
modpython_all: $(addsuffix c, $(notdir $(wildcard $(srcdir)/*.py)))
modpython/znc_core.py: modpython/_znc_core.so
-modpython/_znc_core.so: modpython/_znc_core.cpp Makefile modpython/functions.cpp
+modpython/_znc_core.so: modpython/_znc_core.cpp Makefile
@mkdir -p modpython
@mkdir -p .depend
$(E) Building ZNC python bindings library...
@@ -50,7 +50,8 @@ modpython/_znc_core.cpp: modpython/modpython.i Makefile
@mkdir -p .depend
$(Q)$(SWIG) -python -py3 -c++ -shadow -outdir modpython -I$(srcdir) -MMD -MF .depend/modpython.swig.dep -w362,315,401 -o $@ $<
endif
-modpython/functions.cpp: modpython/functions.in
+modpython.so: modpython/functions.cpp
+modpython/functions.cpp: modpython/functions.in modpython/codegen.pl
@mkdir -p modpython
$(Q)$(PERL) $(srcdir)/modpython/codegen.pl $< $@

0 comments on commit 9e33e4b

Please sign in to comment.