Numpyでヘッダーのinclude pathを取得する方法 ( How to print include path of Numpy FIles ? )

Pythonでヘッダーのinclude pathを取得する方法 ( How to print include path of Python FIles ? ) - mcbiophys'sDigital Bio

の応用問題.

cythonを使うときにsetup.pyでよく使うトリックだが makefileでinclude pathが欲しい場合も当然使える.

NUMPY_INCL_PATH  = $(shell python -c "import numpy; print numpy.get_include()")