Skip to content

Commit 824bbf4

Browse files
committed
Makefile PHP parameter
Ease testing with different PHP versions on make invocations.
1 parent d8f6352 commit 824bbf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
OPTS ?= ""
2+
PHP = php
23

34
all: test md no-links only-dev only-prod json json-pretty
45

56
test:
6-
php ./composer-lock-diff --from test-data/composer.from.lock --to test-data/composer.to.lock $(OPTS)
7+
$(PHP) ./composer-lock-diff --from test-data/composer.from.lock --to test-data/composer.to.lock $(OPTS)
78

89
md:
910
$(MAKE) test OPTS=--md

0 commit comments

Comments
 (0)