changeset 27:99e00e5a3823

Better support for slave ports: 1. Provide an UWSGI_PATH variable to point to the installed uwsginl binary 2. Remove "pre-build" target and integrate into "do-build". This is to allow slave ports check some preconditions in their "pre-build" target.
author Franz Glasner <hg@dom66.de>
date Sun, 24 Sep 2017 17:56:29 +0200
parents 4f95a4fd4d0a
children 1342c5fc9960
files Makefile
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Sep 24 16:07:04 2017 +0200
+++ b/Makefile	Sun Sep 24 17:56:29 2017 +0200
@@ -30,6 +30,7 @@
 MAKE_ENV+=	UWSGI_PROFILE_OVERRIDE=plugin_build_dir=${STAGEDIR}${PREFIX}/${PLUGIN_DIR};plugin_dir=${PREFIX}/${PLUGIN_DIR} PYTHON=${PYTHON_CMD}
 
 UWSGI_NAME=	uwsginl
+UWSGI_PATH=	${PREFIX}/bin/${UWSGI_NAME}
 PLUGIN_DIR=	lib/${UWSGI_NAME}/plugins
 
 # The name of the plugin to be created (to eventually  distingush py2 and py3)
@@ -48,11 +49,9 @@
 do-configure:
 	@${DO_NADA}
 
-pre-build:
+do-build:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
-
-do-build:
-	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/${UWSGI_NAME} --build-plugin "${PLUGIN_SOURCE} ${PLUGIN_NAME}")
+	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${UWSGI_PATH} --build-plugin "${PLUGIN_SOURCE} ${PLUGIN_NAME}")
 
 do-install:
 	${INSTALL_LIB} ${BUILD_WRKSRC}/${PLUGIN_FILENAME} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}