From 5f78e1f55df430d601fe1e517ece47c57755b571 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Mon, 8 Sep 2014 21:27:01 -0400 Subject: [PATCH] Add tags generation/cleanup to Makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1693cd8..c5e4f8a 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ ifneq (,$(SUBDIRS)) include $(patsubst %,%/kernel.mk,$(SUBDIRS)) endif -.PHONY: all clean boot boot-gdb +.PHONY: all tags clean boot boot-gdb all: aedrix-kernel.img aedrix-kernel.elf @@ -80,6 +80,10 @@ config.h: config @sed -i 's/^\s*\(CONFIG_[A-Z0-9_]\+\)\s*=\s*[yY]/#define \1/g' config.h @sed -i 's/^\s*\(CONFIG_[A-Z0-9_]\+\)\s*=\s*\([0-9]\+\)/#define \1 \2/g' config.h +tags: + @echo ' CTAGS tags' + $(V)ctags -R $(SUBDIRS) + clean: @echo ' CLEAN config.h' $(V)rm -f config.h @@ -93,6 +97,8 @@ clean: $(V)rm -f aedrix-kernel.objdump @echo ' CLEAN aedrix-kernel.img' $(V)rm -f aedrix-kernel.img + @echo ' CLEAN tags' + $(V)rm -f tags boot-elf: aedrix-kernel.elf $(V)$(ARCH_QEMU_CMD) -kernel aedrix-kernel.elf -serial stdio