summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Abecassis <fabecassis@nvidia.com>2015-04-17 15:53:12 -0700
committerFelix Abecassis <fabecassis@nvidia.com>2015-04-17 16:10:33 -0700
commit797587d73a8372db11b1f143a2868064f985fade (patch)
tree0668ca30b26926c19a554c494fd765a2b2b1de28
parentc6414ea7cab5917c904729c87f786e0a5909475c (diff)
downloadcaffeonacl-797587d73a8372db11b1f143a2868064f985fade.tar.gz
caffeonacl-797587d73a8372db11b1f143a2868064f985fade.tar.bz2
caffeonacl-797587d73a8372db11b1f143a2868064f985fade.zip
Abort Makefile parsing if the configuration file cannot be found.
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index db0f531e..55ca5f37 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
PROJECT := caffe
CONFIG_FILE := Makefile.config
+ifeq ($(wildcard $(CONFIG_FILE)),)
+$(error $(CONFIG_FILE): file not found.)
+endif
include $(CONFIG_FILE)
BUILD_DIR_LINK := $(BUILD_DIR)