Skip to content

Commit

Permalink
Merge pull request linux-kernel-labs#145 from Sergiu121/infra/Makefiles
Browse files Browse the repository at this point in the history
tools/labs: Change make clean rule to only remove generated files
  • Loading branch information
Sergiu121 authored Mar 3, 2020
2 parents 5a4892b + b6fedc0 commit 96a0222
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/labs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ docs:
cp -r $(KDIR)/Documentation/output/slides/teaching/_static $(KDIR)/Documentation/output/teaching/

clean::
-rm -rf skels
$(MAKE) -C $(KDIR) M=$(KDIR)/tools/labs/skels ARCH=$(ARCH) clean
for i in $(shell find skels -name Makefile | xargs --no-run-if-empty dirname); do $(MAKE) -C $$i clean; done

.PHONY: skels build copy docs clean
clean_skels:
rm -rf skels

.PHONY: skels build copy docs clean clean_skels

0 comments on commit 96a0222

Please sign in to comment.