Dynamixel  2.9.5
RoadNarrows Robotics Dynamixel Package
Makefile
Go to the documentation of this file.
1 ################################################################################
2 #
3 # ./Makefile
4 #
5 ifdef RNMAKE_DOXY
6 /*!
7 \file
8 
9 \brief The \h_dynamixel package top-level makefile.
10 
11 RN Make System Specific Makefile
12 
13 \pkgsynopsis
14 RoadNarrows Robotics \h_dynamixel Package
15 
16 \pkgfile{Makefile}
17 
18 \pkgauthor{Robin Knight,robin.knight@roadnarrows.com}
19 
20 \pkgcopyright{2011-2018,RoadNarrows LLC,http://www.roadnarrows.com}
21 
22 \license{MIT}
23 
24 \EulaBegin
25 \EulaEnd
26 
27  * \cond RNMAKE_DOXY
28  */
29 endif
30 #
31 ################################################################################
32 
33 #------------------------------------------------------------------------------
34 # Required
35 
36 # Package Root Directory
37 RNMAKE_PKG_ROOT = .
38 
39 # Bootstrap package within RN Make System
40 include $(RNMAKE_PKG_ROOT)/make/Bootstrap.mk
41 
42 
43 #------------------------------------------------------------------------------
44 # Subdirectories
45 
46 RNMAKE_SUBDIRS = \
47  libdxl \
48  bsMsgs \
49  libbsclient_dyna \
50  libDynamixel \
51  libbsserver_dyna \
52  dynashell \
53  examples
54 
55 # dxl_sdk-2.0
56 
57 
58 #------------------------------------------------------------------------------
59 # Interface Headers
60 
61 #
62 # Distribution Header List Tags
63 #
64 # List of tags to lists of header files slated to be distributed and installed.
65 #
66 DIST_DYN_HDRS = Dynamixel
67 DIST_DXL_HDRS = dxl
68 DIST_BS_HDRS = botsense
69 
70 RNMAKE_DIST_HDRS = $(DIST_DYN_HDRS) $(DIST_DXL_HDRS) $(DIST_BS_HDRS)
71 
72 #
73 # Distribution Headers
74 #
75 # Format: <tag>.HDRS.H = [<subdirs>/]<hdr>.h ...
76 #
77 # Note: Any header file that requires distribution is expected to be in
78 # $(topdir)/include. Otherwise, is it really a deliverable header?
79 #
80 $(DIST_DYN_HDRS).HDRS.H = $(shell cd include; ls $(DIST_DYN_HDRS)/*.h)
81 $(DIST_DXL_HDRS).HDRS.H = \
82  $(shell cd include; ls $(DIST_DYN_HDRS)/$(DIST_DXL_HDRS)/*.h)
83 $(DIST_BS_HDRS).HDRS.H = botsense/bsDyna.h botsense/bsDynaMsgs.h
84 
85 
86 #------------------------------------------------------------------------------
87 # Documentation
88 
89 # Doxygen Configuration File
90 RNMAKE_DOXY_CONF_FILE = $(RNMAKE_PKG_ROOT)/make/doxy.conf
91 
92 #------------------------------------------------------------------------------
93 # Extras
94 
95 EXTRA_TGT_ALL_POST = all-post
96 
97 PKGDIR_SHARE = $(RNMAKE_PKG_ROOT)/share
98 
99 # post 'all' make target
100 .PHONY: all-post
101 all-post: show-banner cp-etc-files cp-lib-files cp-share-files
102 
103 .PHONY: show-banner
104 show-banner:
105  $(call printDirBanner,,all-post)
106  @printf "Pre-install Configuration\n"
107 
108 .PHONY: cp-etc-files
109 cp-etc-files:
110 
111 .PHONY: cp-lib-files
112 cp-lib-files:
113 
114 .PHONY: cp-share-files
115 cp-share-files:
116  $(call printGoalDesc,$(@),Copying share directory to $(DISTDIR_SHARE))
117  @$(CP_R) $(PKGDIR_SHARE)/* $(DISTDIR_SHARE)
118  @find $(DISTDIR_SHARE) -name '*.svn' -print | xargs rm -fr
119 
120 
121 #------------------------------------------------------------------------------
122 # Include RNMAKE rules makefile(s)
123 
124 # include top-level rules
125 include $(RNMAKE_ROOT)/Rules.mk
126 
127 
128 ifdef RNMAKE_DOXY
129 /*! \endcond RNMAKE_DOXY */
130 endif