mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
20 lines
313 B
Makefile
20 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)
|