技術めも

Makefile

PHP

PHP=$(shell which php)
CURL=$(shell which curl)

composer.phar:
	$(CURL) -s http://getcomposer.org/installer | $(PHP)

install: composer.phar composer-install
	bundler install --path=ruby_vendor/bundle

update: composer-self-update composer-update

composer-self-update:
	$(PHP) composer.phar self-update

composer-install:
	$(PHP) composer.phar install

composer-update:
	$(PHP) composer.phar update