Skip to content

Commit 3796f0c

Browse files
authored
Do not create file with touch (#435)
1 parent d6d7e83 commit 3796f0c

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

Makefile

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -414,95 +414,95 @@ tb: bin/php-scoper.phar vendor
414414

415415
vendor: composer.lock .composer-root-version
416416
/bin/bash -c 'source .composer-root-version && composer install'
417-
touch $@
417+
touch -c $@
418418

419419
vendor/bamarni: composer.lock .composer-root-version
420420
/bin/bash -c 'source .composer-root-version && composer install'
421-
touch $@
421+
touch -c $@
422422

423423
bin/phpunit: composer.lock .composer-root-version
424424
/bin/bash -c 'source .composer-root-version && composer install'
425-
touch $@
425+
touch -c $@
426426

427427
vendor-bin/covers-validator/vendor: vendor-bin/covers-validator/composer.lock vendor/bamarni
428428
composer bin covers-validator install
429-
touch $@
429+
touch -c $@
430430

431431
vendor-bin/code-sniffer/vendor: vendor-bin/code-sniffer/composer.lock vendor/bamarni
432432
composer bin code-sniffer install
433-
touch $@
433+
touch -c $@
434434

435435
fixtures/set005/vendor: fixtures/set005/composer.lock
436436
composer --working-dir=fixtures/set005 install
437-
touch $@
437+
touch -c $@
438438

439439
fixtures/set011/vendor:
440440
composer --working-dir=fixtures/set011 dump-autoload
441-
touch $@
441+
touch -c $@
442442

443443
fixtures/set015/vendor: fixtures/set015/composer.lock
444444
composer --working-dir=fixtures/set015 install
445-
touch $@
445+
touch -c $@
446446

447447
fixtures/set016-symfony-finder/vendor: fixtures/set016-symfony-finder/composer.lock
448448
composer --working-dir=fixtures/set016-symfony-finder install
449-
touch $@
449+
touch -c $@
450450

451451
fixtures/set017-symfony-di/vendor: fixtures/set017-symfony-di/composer.lock
452452
composer --working-dir=fixtures/set017-symfony-di install
453-
touch $@
453+
touch -c $@
454454

455455
fixtures/set018-nikic-parser/vendor: fixtures/set018-nikic-parser/composer.lock
456456
composer --working-dir=fixtures/set018-nikic-parser install
457-
touch $@
457+
touch -c $@
458458

459459
fixtures/set019-symfony-console/vendor: fixtures/set019-symfony-console/composer.lock
460460
composer --working-dir=fixtures/set019-symfony-console install
461-
touch $@
461+
touch -c $@
462462

463463
fixtures/set020-infection/vendor: fixtures/set020-infection/composer.lock
464464
composer --working-dir=fixtures/set020-infection install
465-
touch $@
465+
touch -c $@
466466

467467
fixtures/set021-composer/vendor: fixtures/set021-composer/composer.lock
468468
composer --working-dir=fixtures/set021-composer install
469-
touch $@
469+
touch -c $@
470470

471471
fixtures/set022/vendor: fixtures/set022/composer.json
472472
composer --working-dir=fixtures/set022 update
473-
touch $@
473+
touch -c $@
474474

475475
fixtures/set023/vendor: fixtures/set023/composer.lock
476476
composer --working-dir=fixtures/set023 install
477-
touch $@
477+
touch -c $@
478478

479479
fixtures/set024/vendor: fixtures/set024/composer.lock
480480
composer --working-dir=fixtures/set024 install
481-
touch $@
481+
touch -c $@
482482

483483
fixtures/set025/vendor: fixtures/set025/composer.lock
484484
composer --working-dir=fixtures/set025 install
485-
touch $@
485+
touch -c $@
486486

487487
fixtures/set026/vendor:
488488
composer --working-dir=fixtures/set026 update
489-
touch $@
489+
touch -c $@
490490

491491
fixtures/set027-laravel/vendor: fixtures/set027-laravel/composer.lock
492492
composer --working-dir=fixtures/set027-laravel install --no-dev
493-
touch $@
493+
touch -c $@
494494

495495
fixtures/set028-symfony/vendor: fixtures/set028-symfony/composer.lock
496496
composer --working-dir=fixtures/set028-symfony install --no-dev --no-scripts
497-
touch $@
497+
touch -c $@
498498

499499
fixtures/set029-easy-rdf/vendor: fixtures/set029-easy-rdf/composer.lock
500500
composer --working-dir=fixtures/set029-easy-rdf install --no-dev
501-
touch $@
501+
touch -c $@
502502

503503
fixtures/set030/vendor: fixtures/set030/composer.json
504504
composer --working-dir=fixtures/set030 install --no-dev
505-
touch $@
505+
touch -c $@
506506

507507
composer.lock: composer.json
508508
@echo composer.lock is not up to date.
@@ -557,7 +557,7 @@ fixtures/set029-easy-rdf/composer.lock: fixtures/set029-easy-rdf/composer.json
557557

558558
bin/php-scoper.phar: bin/php-scoper $(SRC_FILES) vendor scoper.inc.php box.json.dist
559559
$(BOX) compile
560-
touch $@
560+
touch -c $@
561561

562562
COVERS_VALIDATOR=$(PHPBIN) vendor-bin/covers-validator/bin/covers-validator
563563
clover.xml: $(SRC_FILES)
@@ -571,16 +571,16 @@ clover.xml: $(SRC_FILES)
571571

572572
$(CODE_SNIFFER): vendor-bin/code-sniffer/vendor
573573
composer bin code-sniffer install
574-
touch $@
574+
touch -c $@
575575

576576
$(CODE_SNIFFER_FIX): vendor-bin/code-sniffer/vendor
577577
composer bin code-sniffer install
578-
touch $@
578+
touch -c $@
579579

580580
$(PHPSTAN): vendor/bamarni
581581
composer bin phpstan install
582-
touch $@
582+
touch -c $@
583583

584584
.composer-root-version:
585585
php bin/dump-composer-root-version.php
586-
touch $@
586+
touch -c $@

0 commit comments

Comments
 (0)