Skip to content

Commit 62f2d70

Browse files
committed
Use LOCAL_SRC variable due to proir assert and only scan libs if there are libs
1 parent 81673d4 commit 62f2d70

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Arduino.mk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,17 +1581,17 @@ generated_assembly: generate_assembly
15811581
.PHONY: tags
15821582
tags:
15831583
rm -f $(shell pwd)/$(TAGS_FILE)
1584-
@$(ECHO) "Generating tags for source files: "
1585-
$(CTAGS_CMD) $(TAGS_FILE) $(shell find "`pwd`" -name "*.cpp" -o -name "*.h" -o -name "*.c")
1586-
@$(ECHO) "Generating tags for IDO an PDE files as C++: "
1587-
$(CTAGS_CMD) $(TAGS_FILE) --langmap=c++:.ino --langmap=c++:.pde $(shell find "`pwd`" -name "*.ino" -o -name "*.pde")
1588-
@$(ECHO) "Generating tags for project libraries: "
1589-
$(CTAGS_CMD) $(TAGS_FILE) $(foreach lib, $(ARDUINO_LIBS),$(USER_LIB_PATH)/$(lib)/*)
1584+
@$(ECHO) "Generating tags for local sources (IDO an PDE files as C++): "
1585+
$(CTAGS_CMD) $(TAGS_FILE) --langmap=c++:.ino --langmap=c++:.pde $(LOCAL_SRCS)
1586+
ifneq ($(words $(ARDUINO_LIBS)), 0)
1587+
@$(ECHO) "Generating tags for project libraries: "
1588+
$(CTAGS_CMD) $(TAGS_FILE) $(foreach lib, $(ARDUINO_LIBS),$(USER_LIB_PATH)/$(lib)/*)
1589+
endif
15901590
@$(ECHO) "Generating tags for Arduino core: "
15911591
$(CTAGS_CMD) $(TAGS_FILE) $(ARDUINO_CORE_PATH)/*
15921592
@$(ECHO) "Sorting..\n"
15931593
@sort $(TAGS_FILE) -o $(TAGS_FILE)
1594-
@$(ECHO) "Tag file generation complete, output: $(TAGS_FILE)"
1594+
@$(ECHO) "Tag file generation complete, output: $(TAGS_FILE)\n"
15951595

15961596
help_vars:
15971597
@$(CAT) $(ARDMK_DIR)/arduino-mk-vars.md

0 commit comments

Comments
 (0)