Skip to content

Instantly share code, notes, and snippets.

@martinda
Created July 26, 2017 08:53
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 martinda/a7ed522294e038dd3b0a1ba3b13a4082 to your computer and use it in GitHub Desktop.
Save martinda/a7ed522294e038dd3b0a1ba3b13a4082 to your computer and use it in GitHub Desktop.
Check env var value is ok in Makefile
ifeq ($(VERILATOR_ROOT),)
$(error VERILATOR_ROOT is not set. Please set it.)
else
ifeq ($(wildcard $(VERILATOR_ROOT)/expected_file),)
$(error VERILATOR_ROOT is set to $(VERILATOR_ROOT) but not finding expected_file in there.)
endif
endif
all:
echo Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment