Skip to content

Instantly share code, notes, and snippets.

@junjizhi
Created December 12, 2013 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junjizhi/7935279 to your computer and use it in GitHub Desktop.
Save junjizhi/7935279 to your computer and use it in GitHub Desktop.
Makefile: how to write conditional in the target implementation script
prepare1:
if [ ! -e $(LINUX_TAR_NAME) ] ; \
then \
wget $(LINUX_TAR_SITE) ; \
fi;
tar -xf $(LINUX_TAR_NAME) && \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment