1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
LIBS=-lboost_python -lGraphicsMagick++
SRC_DIR=src
all:
cd $(SRC_DIR) && make
cp -p src/*.so pgmagick/
TEST_DIR=test
.PHONY: test
test:
cd $(TEST_DIR) && make
profile_pg:
cd example && python -m cProfile -o test.cprof pgmagick_prof.py
cd example && pyprof2html test.cprof && mv html html_pg && rm test.cprof
profile_im:
cd example && python -m cProfile -o test.cprof pythonmagick_prof.py
cd example && pyprof2html test.cprof && mv html html_im && rm test.cprof
profile_4:
cd example && sh profile.sh
pypireg:
python setup.py register
python setup.py sdist upload
clean:
rm -rf pgmagick.* build dist temp
cd $(SRC_DIR) && make clean
rm -rf pgmagick/_pgmagick.so
rm -rf pgmagick/*.pyc
|