Skip to content

Commit

Permalink
Merge pull request #25 from veewee/composer-selfupdate
Browse files Browse the repository at this point in the history
Update composer to latest version before building
  • Loading branch information
veewee authored Oct 27, 2023
2 parents 36418a5 + 0aa3273 commit 292cf86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ testlocal:
make prepare BUILD_DIR=$(BUILD_DIR) PHP=$(PHP)
make cleanup BUILD_DIR=$(BUILD_DIR)

systemupdate:
composer self-update

prepare:
$(if $(PHP),,$(error PHP is not defined. Pass via "make prepare PHP=7.4.19"))
$(if $(BUILD_DIR),,$(error BUILD_DIR is not defined. Pass via "make prepare BUILD_DIR=/tmp/prepared-grumphp-src"))
make systemupdate
cp build/* '$(BUILD_DIR)'
cp src/Composer/FixBrokenStaticAutoloader.php '$(BUILD_DIR)/src/Composer'
php $(BUILD_DIR)/fix-some-stuff-in-composer.php
Expand Down

0 comments on commit 292cf86

Please sign in to comment.