1 #============================================================================
2 # Rules for displaying help messages about targets
3 #============================================================================
5 ## Help target : description
6 ## Adds a description to a target which will be shown to the user when
7 ## "jam help" is invoked.
11 local target = $(<:G=help) ;
12 Depends help : $(target) ;
14 PrintHelp $(target) : $(>) ;
18 #----------------------------------------------------------------------------
23 actions quietly PrintHelp
25 # target width:13, description width:51
26 echo "jam ->$(<) <- =>$(>) <=" | \
27 sed 's/->\(..............\).*<-/\1/;s/=>\(...................................................\).*<=/\1/'