From ac564204f6d4441eaa79ec08ec7a91e99bdb9a15 Mon Sep 17 00:00:00 2001 From: StevenWdV Date: Wed, 9 Feb 2022 13:18:09 +0100 Subject: Cleanup, update indirect Go packages, support specifying list of wrappers to `test-wrappers` --- wrappers/php/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wrappers/php') diff --git a/wrappers/php/Makefile b/wrappers/php/Makefile index f24eee7..758cfe3 100644 --- a/wrappers/php/Makefile +++ b/wrappers/php/Makefile @@ -9,7 +9,7 @@ export PATH := $(abspath vendor/bin):$(PATH) ifeq ($(COPY_LIB),1) COPY_LIB_DIR ?= lib endif -ifneq ($(COPY_LIB_DIR),) +ifdef COPY_LIB_DIR override COPY_LIB_DIR := $(COPY_LIB_DIR)/ endif @@ -27,7 +27,7 @@ install-header: .try-build-lib -e 's/^/#define FFI_LIB "$(subst /,\/,$(COPY_LIB_DIR))$(LIB_FILE)"\n\n/' \ \ "$(EXPORTS_LIB_SUBFOLDER_PATH)/$(LIB_NAME).h" >src/headers/$(LIB_NAME)_php.h -ifneq ($(COPY_LIB_DIR),) +ifdef COPY_LIB_DIR install "$(EXPORTS_LIB_SUBFOLDER_PATH)/$(LIB_FILE)" -Dt "$(COPY_LIB_DIR)" endif -- cgit v1.2.3