Hekateros  3.4.3
RoadNarrows Robotics Robot Arm Project
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_hek package top-level makefile.
10 
11 RN Make System Specific Makefile
12 
13 \pkgsynopsis
14 RoadNarrows Robotics \h_hek Robotic Arm Package
15 
16 \pkgfile{Makefile}
17 
18 \pkgauthor{Robin Knight,robin.knight@roadnarrows.com}
19 
20 \pkgcopyright{2010-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 # Subdirectories
44 
45 RNMAKE_SUBDIRS = sw examples
46 
47 
48 #------------------------------------------------------------------------------
49 # Distribution Header List Tags
50 
51 # List of tags to lists of header files slated to be distributed and installed.
52 #
53 RNMAKE_DIST_HDRS = hekateros
54 
55 #
56 # Distribution Headers
57 #
58 # Format: <tag>.HDRS.H = [<subdirs>/]<hdr>.h ...
59 #
60 # Note: Any header file that requires distribution is expected to be in
61 # $(topdir)/include. Otherwise, is it really a deliverable header?
62 #
63 hekateros.HDRS.H = $(shell cd include; ls Hekateros/*.h)
64 
65 
66 #------------------------------------------------------------------------------
67 # Documentation
68 
69 # Doxygen Configuration File
70 RNMAKE_DOXY_CONF_FILE = $(RNMAKE_PKG_ROOT)/make/doxy.conf
71 
72 
73 #------------------------------------------------------------------------------
74 # Extras
75 
76 EXTRA_TGT_ALL_POST = all-post
77 
78 # Overo Linaro versions of Hekateros
79 ETC_PROF_D_HEK.linaro = share/etc/profile.d/hekateros_linaro.sh
80 ETC_FILES.linaro = share/etc/profile.d/linaro.sh \
81  share/etc/init.d/*
82 
83 # Odroid Ubuntu versions of Hekateros
84 ETC_PROF_D_HEK.odroid = share/etc/profile.d/hekateros_odroid.sh
85 ETC_FILES.odroid = share/etc/init.d/*
86 
87 # profile.d source and destination shell script
88 ETC_PROF_D_HEK_SRC = $(ETC_PROF_D_HEK.$(RNMAKE_ARCH))
89 ETC_PROF_D_HEK_DST = $(DISTDIR_ETC)/profile.d/hekateros.sh
90 
91 # On-target and off-target common etc files
92 ETC_FILES = share/etc/hekateros/*.conf \
93  share/etc/hekateros/*.xml \
94  share/etc/ld.so.conf.d/*.conf \
95  etc/udev/rules.d/*.rules
96 
97 LIB_FILES = share/lib/cmake/rnr/rnr-hekateros-config.cmake
98 
99 PKGDIR_SHARE = $(RNMAKE_PKG_ROOT)/share
100 
101 .PHONY: all-post
102 all-post: show-banner cp-etc-files cp-lib-files cp-share-files
103 
104 .PHONY: show-banner
105 show-banner:
106  $(call printDirBanner,,all-post)
107  @printf "Pre-install Configuration\n"
108 
109 .PHONY: cp-etc-files
110 cp-etc-files:
111  $(call printGoalDesc,$(@),Copying etc files to $(DISTDIR_ETC))
112  $(call copySrcDirRel,$(ETC_FILES) $(ETC_FILES.$(RNMAKE_ARCH)),$(DISTDIR_ETC))
113  $(if $(ETC_PROF_D_HEK_SRC),\
114  $(call copySrcDst,$(ETC_PROF_D_HEK_SRC),$(ETC_PROF_D_HEK_DST)),)
115 
116 .PHONY: cp-lib-files
117 cp-lib-files:
118  $(call printGoalDesc,$(@),Copying extra lib files to $(DISTDIR_LIB))
119  $(call copySrcDirRel,$(LIB_FILES),$(DISTDIR_LIB))
120 
121 .PHONY: cp-share-files
122 cp-share-files:
123  $(call printGoalDesc,$(@),Copying share directory to $(DISTDIR_SHARE))
124  @$(CP_R) $(PKGDIR_SHARE)/* $(DISTDIR_SHARE)
125  @find $(DISTDIR_SHARE) -name '*.svn' -print | xargs rm -fr
126 
127 
128 #------------------------------------------------------------------------------
129 # Include RNMAKE rules makefile(s)
130 
131 # include top-level rules
132 include $(RNMAKE_ROOT)/Rules.mk
133 
134 # include extras
135 include $(RNMAKE_ROOT)/Extras.mk
136 
137 
138 ifdef RNMAKE_DOXY
139 /*! \endcond RNMAKE_DOXY */
140 endif
Hekateros client python modules.
Definition: __init__.py:1