[yoda-svn] r587 - trunk/pyext

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Apr 8 12:23:06 BST 2013


Author: dgrell
Date: Mon Apr  8 12:23:06 2013
New Revision: 587

Log:
Neater environment setting

Modified:
   trunk/pyext/Makefile.am

Modified: trunk/pyext/Makefile.am
==============================================================================
--- trunk/pyext/Makefile.am	Mon Apr  8 11:20:04 2013	(r586)
+++ trunk/pyext/Makefile.am	Mon Apr  8 12:23:06 2013	(r587)
@@ -1,20 +1,22 @@
 SUBDIRS = yoda
 EXTRA_DIST = template.py
 
+ENV = CC=$(CC) CXX=$(CXX)
+
 if ENABLE_PYEXT
 
 all-local:
-	CC=$(CC) CXX=$(CXX) $(PYTHON) setup.py install --install-lib=build/
+	$(ENV) $(PYTHON) setup.py install --install-lib=build/
 
 install-exec-local:
-	CC=$(CC) CXX=$(CXX) $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+	$(ENV) $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
 
 uninstall-local:
 	rm -rf $(DESTDIR)$(YODA_PYTHONPATH)/yoda
 
 clean-local:
-	CC=$(CC) CXX=$(CXX) $(PYTHON) setup.py clean --all
-	@rm -f $(top_builddir)/*.pyc
+	$(ENV) $(PYTHON) setup.py clean --all
+	@rm -f $(builddir)/*.pyc
 	@rm -rf $(builddir)/build
 	@rm -rf dist
 


More information about the yoda-svn mailing list