Add two debug rules the examine the values of runtime make variables. Based on patch by Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 23389
This commit is contained in:
		
							
								
								
									
										12
									
								
								rules.mk
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								rules.mk
									
									
									
									
									
								
							| @@ -254,4 +254,16 @@ all: | |||||||
| FORCE: ; | FORCE: ; | ||||||
| .PHONY: FORCE | .PHONY: FORCE | ||||||
|  |  | ||||||
|  | val.%: | ||||||
|  | 	@$(if $(filter undefined,$(origin $*)),\ | ||||||
|  | 		echo "$* undefined" >&2, \ | ||||||
|  | 		echo '$(subst ','"'"',$($*))' \ | ||||||
|  | 	) | ||||||
|  |  | ||||||
|  | var.%: | ||||||
|  | 	@$(if $(filter undefined,$(origin $*)),\ | ||||||
|  | 		echo "$* undefined" >&2, \ | ||||||
|  | 		echo "$*='"'$(subst ','"'\"'\"'"',$($*))'"'" \ | ||||||
|  | 	) | ||||||
|  |  | ||||||
| endif #__rules_inc | endif #__rules_inc | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jo-Philipp Wich
					Jo-Philipp Wich