Anonymous avatar Anonymous committed 85e0242

grybkine: cmt/fragments/optdebug_library_header: Install separate file with library debug symbols

Comments (0)

Files changed (2)

+2012-01-30   Grigori Rybkine <Grigori.Rybkine@cern.ch>
+	* cmt/fragments/optdebug_library_header: Install separate file with library
+	debug symbols
+	* Tag AtlasCommonPolicy-00-00-16
+	
 2011-12-16  Sebastien Binet  <sebastien.binet@cern.ch>
 
 	* tagging AtlasCommonPolicy-00-00-15

cmt/fragments/optdebug_library_header

 depend=$(bin)$(library_prefix)$(library).$(shlibsuffix)
 target=$(depend)$(debuginfosuffix)
 
-${CONSTITUENT} :: $(target)
+${CONSTITUENT} :: $(target) ;
 
 $(target) : $(depend)
 	$(echo) stripping dbg symbols into separate file $@
 	$(link_silent) touch -c $@
 
 ${CONSTITUENT}clean ::
-	/bin/rm -f ${target}
+	$(cleanup_silent) /bin/rm -f $(target)
+
+#-----------------------------------------------------------------
+#
+#  New section for automatic installation
+#
+#-----------------------------------------------------------------
+
+install_dir = ${CMTINSTALLAREA}/$(tag)/lib
+${CONSTITUENT}installname = $(library_prefix)$(library)$(library_suffix).$(shlibsuffix)$(debuginfosuffix)
+
+${CONSTITUENT} :: ${CONSTITUENT}install ;
+
+install :: ${CONSTITUENT}install ;
+
+${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
+ifdef CMTINSTALLAREA
+	$(echo) "$(${CONSTITUENT}installname) installation done"
+endif
+
+$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
+ifdef CMTINSTALLAREA
+	$(install_silent) $(cmt_install_action) \
+	    -source "`(cd $(bin); pwd)`" \
+	    -name "$(${CONSTITUENT}installname)" \
+	    -out "$(install_dir)" \
+	    -cmd "$(cmt_installarea_command)" \
+	    -cmtpath "$($(package)_cmtpath)"
+endif
+
+##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
+
+uninstall :: ${CONSTITUENT}uninstall ;
+
+${CONSTITUENT}uninstall ::
+ifdef CMTINSTALLAREA
+	$(cleanup_silent) $(cmt_uninstall_action) \
+	    -source "`(cd $(bin); pwd)`" \
+	    -name "$(${CONSTITUENT}installname)" \
+	    -out "$(install_dir)" \
+	    -cmtpath "$($(package)_cmtpath)"
+endif
 
 #-- start of optdebug_library_header ------
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.