mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-11-01 09:13:37 +00:00 
			
		
		
		
	As far as I can tell the normal Makefile dependency tracking works, generated files get re-generated if the YAML was updated. Let make do its job, don't force the re-generation. make hardclean can be used to force regeneration. Acked-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/r/20231003153416.2479808-3-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			313 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			313 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# SPDX-License-Identifier: GPL-2.0
 | 
						|
 | 
						|
SUBDIRS = lib generated samples
 | 
						|
 | 
						|
all: $(SUBDIRS)
 | 
						|
 | 
						|
$(SUBDIRS):
 | 
						|
	@if [ -f "$@/Makefile" ] ; then \
 | 
						|
		$(MAKE) -C $@ ; \
 | 
						|
	fi
 | 
						|
 | 
						|
clean hardclean:
 | 
						|
	@for dir in $(SUBDIRS) ; do \
 | 
						|
		if [ -f "$$dir/Makefile" ] ; then \
 | 
						|
			$(MAKE) -C $$dir $@; \
 | 
						|
		fi \
 | 
						|
	done
 | 
						|
 | 
						|
.PHONY: clean all $(SUBDIRS)
 |