Build subdirs with 'make sub'

This commit is contained in:
Imbus 2025-09-07 21:57:49 +02:00
parent bed5c13dc8
commit d1044a94a1

View file

@ -20,6 +20,9 @@ ELF := $(SRC:.c=.elf)
all: $(ELF) all: $(ELF)
sub:
@-find . -mindepth 1 -maxdepth 1 -type d -exec make --no-print-directory -C {} \;
tags: tags:
ctags -R . ctags -R .
@ -32,5 +35,6 @@ format:
clean: clean:
@echo "Cleaning up..." @echo "Cleaning up..."
@rm -rf $(OBJ) $(ELF) *.json .cache @rm -rf $(OBJ) $(ELF) *.json .cache
@find . -mindepth 1 -maxdepth 1 -type d -exec make --no-print-directory -C {} clean \;
.PHONY: format .PHONY: format