-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
41 lines (28 loc) · 897 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
40
41
.DEFAULT_GOAL := test
.PHONY: test
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
##
## Tests
##---------------------------------------------------------------------------
test: ## Run all the tests
test: vendor fixtures/vendor fixtures/vendor-bin/sub/vendor
composer validate --no-interaction
php tests/root.php > root.actual
php tests/sub.php > sub.actual
diff tests/root.expected root.actual
diff tests/sub.expected sub.actual
rm root.actual
rm sub.actual
##
## Rules from files
##---------------------------------------------------------------------------
vendor:
composer update
touch $@
fixtures/vendor:
composer update --working-dir fixtures --no-interaction ${COMPOSER_FLAGS}
touch $@
fixtures/vendor-bin/sub/vendor:
composer update --working-dir fixtures/vendor-bin/sub --no-interaction ${COMPOSER_FLAGS}
touch $@