mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Don't generate mod[perl|python].tar.bz2
This commit is contained in:
@@ -15,26 +15,23 @@ E=@\#
|
||||
C=
|
||||
endif
|
||||
|
||||
modpython/modpython.tar.bz2: modpython/gen/_znc_core.cpp modpython/gen/znc_core.py modpython/gen/functions.cpp modpython/gen/swigpyrun.h
|
||||
$(E) Packing modpython files...
|
||||
$(Q)tar -cjf $@ -C modpython/gen _znc_core.cpp znc_core.py functions.cpp swigpyrun.h
|
||||
.SECONDARY:
|
||||
|
||||
modpython/gen/swigpyrun.h:
|
||||
@mkdir -p modpython/gen
|
||||
all: modpython/_znc_core.cpp modpython/znc_core.py modpython/functions.cpp modpython/swigpyrun.h
|
||||
|
||||
modpython/swigpyrun.h:
|
||||
@mkdir -p modpython
|
||||
$(Q)$(SWIG) -python -py3 -c++ -shadow -external-runtime $@
|
||||
|
||||
modpython/gen/_znc_core.cpp: modpython/modpython.i modpython/module.h modpython/cstring.i
|
||||
modpython/_znc_core.cpp: modpython/modpython.i modpython/module.h modpython/cstring.i
|
||||
$(E) Generating ZNC API for python...
|
||||
@mkdir -p modpython/gen
|
||||
$(Q)$(SWIG) -python -py3 -c++ -shadow -outdir modpython/gen -I$(srcdir) -MD -MF .depend/modpython.swig.dep -w362,315,401 -o $@ $<
|
||||
$(Q)$(SED) 's#^modpython/gen/_znc_core.cpp:#modpython/modpython.tar.bz2:#' .depend/modpython.swig.dep > .depend/modpython.tar.dep
|
||||
@mkdir -p modpython
|
||||
$(Q)$(SWIG) -python -py3 -c++ -shadow -outdir modpython -I$(srcdir) -MD -MF .depend/modpython.swig.dep -w362,315,401 -o $@ $<
|
||||
|
||||
modpython/gen/znc_core.py: modpython/gen/_znc_core.cpp
|
||||
modpython/znc_core.py: modpython/_znc_core.cpp
|
||||
|
||||
modpython/gen/functions.cpp: modpython/codegen.pl modpython/functions.in
|
||||
modpython/functions.cpp: modpython/codegen.pl modpython/functions.in
|
||||
@mkdir -p modpython
|
||||
$(Q)$(PERL) $^ $@
|
||||
|
||||
all: modpython/modpython.tar.bz2
|
||||
|
||||
-include .depend/modpython.swig.dep
|
||||
|
||||
@@ -25,9 +25,6 @@ endif
|
||||
|
||||
.PHONY: modpython_install modpython_all
|
||||
|
||||
# otherwise make doesn't see it even when it exists and wants to create it several times
|
||||
.SECONDARY: modpython/znc_core.py
|
||||
|
||||
install: $(PYTHONHOOK)
|
||||
|
||||
# This will run: modpython/compiler blah.py blah.pyc
|
||||
@@ -41,12 +38,6 @@ endif
|
||||
modpython_all: modpython/_znc_core.so modpython/znc.pyc modpython/znc_core.pyc
|
||||
modpython_all: $(addsuffix c, $(notdir $(wildcard $(srcdir)/*.py)))
|
||||
|
||||
modpython/znc_core.py modpython/_znc_core.cpp modpython/functions.cpp modpython/swigpyrun.h: modpython/modpython.tar.bz2
|
||||
@mkdir -p modpython
|
||||
$(E) Unpacking modpython files...
|
||||
$(Q)tar -xf $^ -C modpython
|
||||
$(Q)touch modpython/swigpyrun.h modpython/functions.cpp modpython/_znc_core.cpp modpython/znc_core.py
|
||||
|
||||
modpython/_znc_core.o: modpython/_znc_core.cpp Makefile
|
||||
@mkdir -p modpython
|
||||
@mkdir -p .depend
|
||||
@@ -58,7 +49,7 @@ modpython/_znc_core.so: modpython/_znc_core.o Makefile
|
||||
$(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -o $@ $< $(PY_LDFLAGS)
|
||||
|
||||
ifneq "$(SWIG)" ""
|
||||
modpython/modpython.tar.bz2: modpython/codegen.pl modpython/functions.in Makefile
|
||||
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)"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user