Created
August 8, 2012 17:29
-
-
Save zroger/3296872 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP = php | |
PHPFLAGS = -d allow_url_fopen=On -d date.timezone="America/New_York" | |
install: composer.lock | |
update: | |
$(PHP) $(PHPFLAGS) composer.phar update | |
composer.phar: | |
curl http://getcomposer.org/installer | $(PHP) $(PHPFLAGS) | |
# If composer has nothing to install, composer.lock doesn't get touched. This | |
# keeps us from having to run composer again if composer.phar is newer than | |
# composer.lock. | |
composer.lock: composer.phar composer.json | |
$(PHP) $(PHPFLAGS) composer.phar install && touch composer.lock | |
clean: | |
rm -rf ./vendor | |
rm composer.phar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment