summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-08-10 19:46:08 -0700
committerJoshua Haberman <joshua@reverberate.org>2011-08-10 19:46:08 -0700
commit336268b3d7e8860e86171650882d0a4f7d62ecfd (patch)
treed807ee52068134c3a7bd884d0efa558ce51bddb1 /Makefile
parentbe7457245594fdc56ee23306eb6e3962f7333fc7 (diff)
Fixed a few memory leaks and Makefile tweaks.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6fb994a..314b69b 100644
--- a/Makefile
+++ b/Makefile
@@ -120,7 +120,7 @@ clean_leave_profile:
rm -rf upb/descriptor.pb
rm -rf tools/upbc deps
rm -rf lang_ext/lua/upb.so
- cd lang_ext/python && python setup.py clean --all
+ rm -rf lang_ext/python/build
clean: clean_leave_profile
rm -rf $(call rwildcard,,*.gcno) $(call rwildcard,,*.gcda)
@@ -397,11 +397,12 @@ lang_ext/lua/upb.so: lang_ext/lua/upb.c $(LIBUPB_PIC)
# Python extension #############################################################
+PYTHON=python2.6-dbg
PYTHONEXT=lang_ext/python/build/install/lib/python/upb/__init__.so
python: $(PYTHONEXT)
$(PYTHONEXT): $(LIBUPB_PIC) lang_ext/python/upb.c
$(E) PYTHON lang_ext/python/upb.c
- $(Q) cd lang_ext/python && python setup.py build install --home=build/install
+ $(Q) cd lang_ext/python && $(PYTHON) setup.py build --debug install --home=build/install
pythontest: $(PYTHONEXT)
- cd lang_ext/python && cp test.py build/install/lib/python && python ./build/install/lib/python/test.py
+ cd lang_ext/python && cp test.py build/install/lib/python && valgrind $(PYTHON) ./build/install/lib/python/test.py
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback