Skip to content

Commit

Permalink
Check for that required tools exist prior to make.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilFraser committed Jan 23, 2019
1 parent 52da05d commit bce8168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ APP_ENGINE_THIRD_PARTY = appengine/third-party
SOY_COMPILER = java -jar third-party/SoyToJsSrcCompiler.jar --shouldProvideRequireSoyNamespaces --isUsingIjData
SOY_EXTRACTOR = java -jar third-party/SoyMsgExtractor.jar

REQUIRED_BINS = svn unzip wget java python

##############################
# Rules
##############################
Expand Down Expand Up @@ -86,6 +88,8 @@ languages:
done

deps:
$(foreach bin,$(REQUIRED_BINS),\
$(if $(shell command -v $(bin) 2> /dev/null),$(info Found `$(bin)`),$(error Please install `$(bin)`)))
mkdir -p third-party
@# All following commands are in third-party, use backslashes to keep them on the same line as the cd command.
cd third-party; \
Expand Down

0 comments on commit bce8168

Please sign in to comment.