summaryrefslogtreecommitdiff
path: root/wrappers/php/Makefile
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2022-02-09 00:40:38 +0100
committerStevenWdV <stevenwdv@gmail.com>2022-02-09 00:40:38 +0100
commit2aad9b6ae61337ef94b05adc377a9ad2cbaa8eb8 (patch)
tree022c006cfac7a60fd0ab8896fac3991cf34b8fce /wrappers/php/Makefile
parentb60ecf2fe5ddfe506e02093286b3931873187e91 (diff)
Add Android wrapper, remove plain Java Maven wrapper.
Fix some overrides in Makefiles.
Diffstat (limited to 'wrappers/php/Makefile')
-rw-r--r--wrappers/php/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/wrappers/php/Makefile b/wrappers/php/Makefile
index 5384d92..f24eee7 100644
--- a/wrappers/php/Makefile
+++ b/wrappers/php/Makefile
@@ -10,12 +10,12 @@ ifeq ($(COPY_LIB),1)
COPY_LIB_DIR ?= lib
endif
ifneq ($(COPY_LIB_DIR),)
-COPY_LIB_DIR := $(COPY_LIB_DIR)/
+override COPY_LIB_DIR := $(COPY_LIB_DIR)/
endif
# Strip / replace elements confusing PHP's limited C parser: __SIZE_TYPE__, _Complex, extern "C"
# Also add FFI_LIB library name, see https://www.php.net/manual/en/ffi.load
-install-header: .try_build_lib
+install-header: .try-build-lib
mkdir -p src/headers
sed --null-data \
-e 's/DO NOT EDIT/Modified for PHP/' \
@@ -47,4 +47,7 @@ install-dev-dependencies:
$(COMPOSER) check-platform-reqs
clean:
- rm -rf vendor/ .phpunit* src/headers/*.h lib/*
+ rm -rf .phpunit* src/headers/*.h lib/*
+ifeq ($(CLEAN_ALL),1)
+ rm -rf vendor/
+endif