Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Make is an actual task runner

Make is an actual task runner

Julien BIANCHI

October 27, 2016
Tweet

More Decks by Julien BIANCHI

Other Decks in Programming

Transcript

  1. me-started: vendor node_modules .PHONY: me-started vendor: composer.lock composer install composer.lock:

    composer.json composer update node_modules: package.json npm install CONFIGURABLE
  2. MIAATR_ENV ?= dev COMPOSER_ARGS = ifeq ($(MIAATR_ENV),prod) COMPOSER_ARGS=—prefer-dist —classmap- authoritative

    endif vendor: composer.lock composer install $(COMPOSER_ARGS) CONFIGURABLE
  3. $ make composer install $ make MIAATR_ENV=prod composer install —prefer-dist

    — classmap-authoritative $ export MIAATR_ENV=prod $ make composer install —prefer-dist SIMPLE