-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
39 lines (30 loc) · 879 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PHP_COMMAND ?= php
COMPOSER_COMMAND ?= lib/bin/composer
COMPOSER_VERSION ?= 2.0.12
export COMPOSER_CMD
.PHONY : all
all : install test
.PHONY : install
install : composer.lock
.PHONY : test
test :
test/shell.sh
.PHONY : test-yaml
test-yaml : lib/bin/php
env PATH="$(abspath lib/bin):$(PATH)" test/shell.sh
lib/bin/php : lib/phpbin.php
$(PHP_COMMAND) $< '$(shell command -v '$(PHP_COMMAND)' 2> /dev/null)' $@ -n \
-d extension=phar.so -d extension=json.so -d extension=iconv.so -d extension=zip.so -d extension=curl.so \
-d extension=ctype.so
composer.lock : composer.json lib/bin/composer
$(COMPOSER_COMMAND) install --no-scripts
sed -i -E 's/ +$$//' lib/composer/autoload_static.php
touch $@
lib/bin/composer : lib/compinst.php
$(PHP_COMMAND) $< $(COMPOSER_VERSION) $@
chmod +x $@
$@ --version
touch $@
.PHONY : clean
clean :
rm -f GITHUB_OUTPUT.cache