Skip to content

Instantly share code, notes, and snippets.

@madx
Last active August 29, 2015 14:04
Show Gist options
  • Save madx/9dd6a1189abc68a2778f to your computer and use it in GitHub Desktop.
Save madx/9dd6a1189abc68a2778f to your computer and use it in GitHub Desktop.
ifeq ($(OS),Darwin)
install:
npm install -g
else
install:
sudo npm install -g
endif
OU
install:
@ if [ $(uname -s) = "Darwin" ]; then\
@ npm install -g\
@ else\
@ sudo npm install -g\
@ fi
(à vérifier pour la syntaxe)
LE MIEUX (ce que je fais dans veil d'ailleurs)
NPM_INSTALL = "sudo npm install"
ifeq ($(OS),Darwin)
NPM_INSTALL = "npm install"
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment