Skip to content
Permalink
Browse files

make build -> make all; Add make watch

  • Loading branch information...
apeschar committed Oct 19, 2019
1 parent 93de81b commit 0f8cf95e26bcb4902dde993cdad8baf8fd18ceab
Showing with 9 additions and 8 deletions.
  1. +9 −8 Makefile
@@ -2,10 +2,13 @@ PHP56 = docker run -it -v $(shell pwd):/data -w /data $(shell cat docker/php56.i
PHP56MIN = docker run -it -v $(shell pwd):/data -w /data $(shell cat docker/php56-min.image)


.PHONY : all test test-local dist build clean
.PHONY : all watch test test-local dist clean


all : vendor/autoload.php
all : build/phast.php build/cacert.pem

watch :
git ls-files src | entr make

test : all docker/php56.image docker/php56-min.image
$(PHP56) vendor/bin/phpunit
@@ -17,19 +20,17 @@ test-local : all
dist : all
bin/package

build : build/phast.php build/cacert.pem
clean :
rm -rf build


build/phast.php : vendor/autoload.php
build/phast.php : vendor/autoload.php $(shell git ls-files src)
mkdir -p $(dir $@)
bin/compile > $@

build/cacert.pem : src/HTTP/cacert.pem
cp $< $@

clean :
rm -rf build


vendor/autoload.php : composer.json composer.lock
composer install

0 comments on commit 0f8cf95

Please sign in to comment.
You can’t perform that action at this time.