igmk / pamtra

Passive and Active Microwave TRAnsfer model
GNU General Public License v3.0
19 stars 16 forks source link

Remove hard-coded ~/lib/python/ in py_usStandard Makefile #49

Open martin-rdz opened 10 months ago

martin-rdz commented 10 months ago

Issue

Modifications of PYINSTDIR are not propagated down to the sub-make of py_usStandard.

Fix

Use the export of make variables (https://www.gnu.org/savannah-checkouts/gnu/make/manual/html_node/Variables_002fRecursion.html)

Change in pamtra makefile

PYINSTDIR := ~/lib/python/
export PYINSTDIR

and in tools/py_usStandard/Makefile:

install: usStandardAtmosphere.so
     cp *.py $(PYINSTDIR)
     cp *.so $(PYINSTDIR)