14 lines
		
	
	
		
			304 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			304 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # Included at the top of each subdirectory Makefile, immediately
 | |
| # following the local re-definition of DIRNAME
 | |
| 
 | |
| # Push the previous directory onto the 'stack'
 | |
| sp := $(sp).x
 | |
| dirstack_$(sp) := $(d)
 | |
| 
 | |
| # Update $(d) to be the current directory
 | |
| ifneq (,$(d))
 | |
| 	d := $(d)/$(DIRNAME)
 | |
| else
 | |
| 	d := $(DIRNAME)
 | |
| endif
 |