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