Multiple makefiles: autodetect SCST include directory

It is cumbersome to change SCST_INC_DIR and SCST_DIR in each Makefile
before and after a release. Hence modify the Makefiles such that these
paths are detected automatically.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4740 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-01-16 00:12:38 +00:00
parent c6d247254c
commit bd7c893f04
6 changed files with 43 additions and 32 deletions
-4
View File
@@ -1,7 +1,3 @@
SCST_INC_DIR := $(shell d="$(dir $(lastword $(MAKEFILE_LIST)))"; \
if [ -e "$$d../../scst" ]; \
then echo "$$d../../scst/include"; \
else echo "/usr/local/include/scst"; fi)
EXTRA_CFLAGS += -I$(SCST_INC_DIR)
-include $(SUBDIRS)/../build_mode