Created
July 26, 2017 08:53
-
-
Save martinda/a7ed522294e038dd3b0a1ba3b13a4082 to your computer and use it in GitHub Desktop.
Check env var value is ok in Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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