Skip to content

Commit 101faed

Browse files
authored
Tweaks makefile and update dependencies (#212)
1 parent 83b9abb commit 101faed

File tree

5 files changed

+526
-204
lines changed

5 files changed

+526
-204
lines changed

Makefile

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ PHPNOGC=php -d zend.enable_gc=0
44

55
.PHONY: help
66
help:
7-
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
7+
@echo "\033[33mUsage:\033[0m\n make TARGET\n\n\033[32m#\n# Commands\n#---------------------------------------------------------------------------\033[0m\n"
8+
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | awk 'BEGIN {FS = ":"}; {printf "\033[33m%s:\033[0m%s\n", $$1, $$2}'
89

910

10-
##
11-
## Build
12-
##---------------------------------------------------------------------------
11+
#
12+
# Build
13+
#---------------------------------------------------------------------------
1314

1415
.PHONY: clean
1516
clean: ## Clean all created artifacts
@@ -22,9 +23,9 @@ BOX=vendor/bin/box
2223
build: bin/php-scoper.phar
2324

2425

25-
##
26-
## Tests
27-
##---------------------------------------------------------------------------
26+
#
27+
# Tests
28+
#---------------------------------------------------------------------------
2829

2930
.PHONY: test
3031
test: ## Run all the tests
@@ -182,52 +183,59 @@ tb: vendor
182183

183184
vendor: composer.lock
184185
composer install
186+
touch $@
185187

186188
vendor/bamarni: composer.lock
187189
composer install
190+
touch $@
188191

189192
vendor/bin/phpunit: composer.lock
190193
composer install
191-
192-
vendor-bin/box/vendor: vendor-bin/box/composer.lock vendor/bamarni
193-
composer bin all install
194+
touch $@
194195

195196
vendor-bin/covers-validator/vendor: vendor-bin/covers-validator/composer.lock vendor/bamarni
196197
composer bin covers-validator install
198+
touch $@
197199

198200
fixtures/set005/vendor: fixtures/set005/composer.lock
199201
composer --working-dir=fixtures/set005 install
202+
touch $@
200203

201204
fixtures/set011/vendor: fixtures/set011/vendor
202205
composer --working-dir=fixtures/set011 dump-autoload
206+
touch $@
203207

204208
fixtures/set015/vendor: fixtures/set015/composer.lock
205209
composer --working-dir=fixtures/set015 install
210+
touch $@
206211

207212
fixtures/set016-symfony-finder/vendor: fixtures/set016-symfony-finder/composer.lock
208213
composer --working-dir=fixtures/set016-symfony-finder install
214+
touch $@
209215

210216
fixtures/set017-symfony-di/vendor: fixtures/set017-symfony-di/composer.lock
211217
composer --working-dir=fixtures/set017-symfony-di install
218+
touch $@
212219

213220
fixtures/set018-nikic-parser/vendor: fixtures/set018-nikic-parser/composer.lock
214221
composer --working-dir=fixtures/set018-nikic-parser install
222+
touch $@
215223

216224
fixtures/set019-symfony-console/vendor: fixtures/set019-symfony-console/composer.lock
217225
composer --working-dir=fixtures/set019-symfony-console install
226+
touch $@
218227

219228
fixtures/set020-infection/vendor: fixtures/set020-infection/composer.lock
220229
composer --working-dir=fixtures/set020-infection install
230+
touch $@
221231

222232
fixtures/set021-composer/vendor: fixtures/set021-composer/composer.lock
223233
composer --working-dir=fixtures/set021-composer install
234+
touch $@
224235

225236
composer.lock: composer.json
226237
@echo composer.lock is not up to date.
227238

228-
vendor-bin/box/composer.lock: composer.lock
229-
@echo vendor-bin/box/composer.lock is not up to date.
230-
231239
vendor-bin/covers-validator/composer.lock: vendor-bin/covers-validator/composer.json
232240
@echo covers-validator composer.lock is not up to date
233241

@@ -255,8 +263,9 @@ fixtures/set020-infection/composer.lock: fixtures/set020-infection/composer.json
255263
fixtures/set021-composer/composer.lock: fixtures/set021-composer/composer.json
256264
@echo fixtures/set021-composer/composer.lock is not up to date.
257265

258-
bin/php-scoper.phar: bin/php-scoper src vendor vendor-bin/box/vendor scoper.inc.php box.json
266+
bin/php-scoper.phar: bin/php-scoper src vendor scoper.inc.php box.json
259267
$(BOX) compile
268+
touch $@
260269

261270
box.json: box.json.dist
262271
cat box.json.dist | sed -E 's/\"key\": \".+\",//g' | sed -E 's/\"algorithm\": \".+\",//g' > box.json

box.json.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
"compactors": [
1414
"Herrera\\Box\\Compactor\\Json",
15-
"KevinGH\\Box\\Compactor\\PhpScoper",
16-
"Herrera\\Box\\Compactor\\Php"
15+
"Herrera\\Box\\Compactor\\Php",
16+
"KevinGH\\Box\\Compactor\\PhpScoper"
1717
]
1818
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"require-dev": {
3030
"bamarni/composer-bin-plugin": "^1.1",
31-
"humbug/box": "^3.0@dev",
31+
"humbug/box": "^3.0@beta",
3232
"phpunit/phpunit": "^7.0"
3333
},
3434
"replace": {

0 commit comments

Comments
 (0)