Skip to content

Commit

Permalink
Abort Makefile parsing if the configuration file cannot be found.
Browse files Browse the repository at this point in the history
  • Loading branch information
flx42 committed Apr 17, 2015
1 parent c6414ea commit 797587d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 797587d

Please sign in to comment.