libserial  1.6.2
RoadNarrows Roboitics Serial Library
Bootstrap.mk
Go to the documentation of this file.
1 ################################################################################
2 #
3 # ./make/Bootstrap.mk
4 #
5 ifdef RNMAKE_DOXY
6 /*!
7 \file
8 
9 \brief Bootstrap the RN Make System location and define any simple
10 package-specific environment.
11 
12 RN Make System Specific Makefile
13 
14 \pkgsynopsis
15 RoadNarrows RS-232 Serial Library Package
16 
17 \pkgfile{make/Bootstrap.mk}
18 
19 \pkgauthor{Robin Knight,robin.knight@roadnarrows.com}
20 
21 \pkgcopyright{2018,RoadNarrows LLC,http://www.roadnarrows.com}
22 
23 \license{MIT}
24 
25 \EulaBegin
26 \EulaEnd
27 
28  * \cond RNMAKE_DOXY
29  */
30 endif
31 #
32 ################################################################################
33 
34 _BOOTSTRAP_MK = 1
35 
36 ifndef RNMAKE_PKG_ROOT
37  $(error 'RNMAKE_PKG_ROOT' Not defined in including makefile)
38 endif
39 
40 #------------------------------------------------------------------------------
41 # Required
42 
43 # 'make rnmake=<path> ...' or RNMAKE_ROOT
44 rnmake ?= $(RNMAKE_ROOT)
45 
46 # must be defined and non-empty
47 ifeq ($(rnmake),)
48  $(error 'RNMAKE_ROOT' environment variable not specified)
49 endif
50 
51 # make absolute root name (empty string returned if directory does not exist)
52 RNMAKE_ROOT := $(realpath $(rnmake))
53 
54 # directory required
55 ifeq ($(RNMAKE_ROOT),)
56  $(error 'RNMAKE_ROOT=$(rnmake)': No such directory)
57 endif
58 
59 
60 ifdef RNMAKE_DOXY
61 /*! \endcond RNMAKE_DOXY */
62 endif