mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Get rid of the modpythin jobhack
This exists to fix a problem where the python swig API was generated multiple times in parallel with "make -j3". This problems turns out to be due to the multiple target rule that this commit removes. Such a rule doesn't mean "this commands generate multiple files at once" but means "you can use this command for each of these targets". Fix this by including Makefile.gen instead of calling it in its own make process. That way we don't need this "meta rule" which just calls another Makefile but can use the "real" rules immediately. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -57,9 +57,7 @@ modpython/_znc_core.$(PYCEXT_EXT): modpython/_znc_core.o Makefile modpython.so
|
||||
$(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -o $@ $< $(PY_LDFLAGS) $(PYDEPONMOD)
|
||||
|
||||
ifneq "$(SWIG)" ""
|
||||
modpython/znc_core.py modpython/_znc_core.cpp modpython/functions.cpp modpython/swigpyrun.h: modpython/codegen.pl modpython/functions.in Makefile
|
||||
@mkdir -p modpython .depend
|
||||
$(Q)$(MAKE) -f $(srcdir)/modpython/Makefile.gen $(C) SWIG="$(SWIG)" srcdir="$(srcdir)" PERL="$(PERL)" VERBOSE="$(VERBOSE)" SED="$(SED)"
|
||||
include $(srcdir)/modpython/Makefile.gen
|
||||
endif
|
||||
|
||||
modpython.o: modpython/functions.cpp
|
||||
|
||||
Reference in New Issue
Block a user