Skip to content

Instantly share code, notes, and snippets.

@bearice
Created November 22, 2012 08:38
Show Gist options
  • Save bearice/4130021 to your computer and use it in GitHub Desktop.
Save bearice/4130021 to your computer and use it in GitHub Desktop.
NPM=npm
SYTLUS=sytlus
check_env:
@if which $(SYTLUS) > /dev/null; then \
echo Found sytlus; \
else \
if which $(NPM) > /dev/null; then \
echo npm -g install sytlus; \
else \
echo npm not found!! ;\
exit 2 ;\
fi \
fi
all: check_env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment