Update of /cvsroot/mahogany/M/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3516/src/Python
Modified Files:
Names.mk
Log Message:
fixed swig-update target
Index: Names.mk
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/Names.mk,v
retrieving revision 1.14
retrieving revision 1.15
diff -b -u -2 -r1.14 -r1.15
--- Names.mk 15 Dec 2005 19:40:04 -0000 1.14
+++ Names.mk 16 Jan 2006 02:32:06 -0000 1.15
@@ -24,10 +24,11 @@
ifdef SWIG
-# this command replaces #include Python.h in the generated C++ code with
-# #include MPython.h which we need for dynamic Python linking to work
+# this command runs swig to generate .cpp file from an .i one and then replaces
+# #include Python.h in the generated C++ code with #include MPython.h which we
+# need for dynamic Python linking to work
define create_cpp
- $(SWIG) -I$(IFACE_DIR) $(CPPFLAGS) $(SWIGFLAGS) -o $(@:.o=.cpp) $< && \
- sed -e 's/Python\.h/MPython.h/' $(@:.o=.cpp) > $(@:.o=.cpp).new && \
- mv $(@:.o=.cpp).new $(@:.o=.cpp)
+ $(SWIG) -I$(IFACE_DIR) $(CPPFLAGS) $(SWIGFLAGS) -o $*.cpp $< && \
+ sed -e 's/Python\.h/MPython.h/' $*.cpp > $*.cpp.new && \
+ mv $*.cpp.new $*.cpp
endef
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates