forked from cucumber/common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.mk
51 lines (38 loc) · 859 Bytes
/
default.mk
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
42
43
44
45
46
47
48
49
50
51
# Please update /.templates/php/default.mk and sync:
#
# source scripts/functions.sh && rsync_files
#
SHELL := /usr/bin/env bash
PHP_SOURCE_FILES = $(shell find . -name "*.php")
### COMMON stuff for all platforms
### Common targets for all functionalities implemented on php
default: .tested
.PHONY: default
pre-release: update-version update-dependencies
.PHONY: pre-release
update-version:
ifdef NEW_VERSION
# TODO: something here?
endif
.PHONY: update-version
update-dependencies:
.PHONY: update-dependencies
publish:
# TODO: how to publish?
.PHONY: publish
post-release:
# no-op
.PHONY: post-release
clean:
rm -rf vendor composer.lock
.PHONY: clean
.tested: .deps .codegen $(PHP_SOURCE_FILES)
vendor/bin/phpunit
.PHONY: .tested
.deps: composer.lock
touch $@
.codegen:
touch $@
composer.lock: composer.json
composer install
touch $@