File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1320,7 +1320,7 @@ ifndef TAGS_FILE
1320
1320
TAGS_FILE = tags
1321
1321
endif
1322
1322
1323
- # ctags command: append file with user options before
1323
+ # ctags command: append, flags unsort (as will be sorted after) and specify filename
1324
1324
CTAGS_CMD = $(CTAGS_EXEC ) $(CTAGS_OPTS ) -auf
1325
1325
1326
1326
# #######################################################################
@@ -1580,7 +1580,9 @@ generated_assembly: generate_assembly
1580
1580
1581
1581
.PHONY : tags
1582
1582
tags :
1583
- rm -f $(shell pwd) /$(TAGS_FILE )
1583
+ ifneq ($(words $(wildcard $(TAGS_FILE ) ) ) , 0)
1584
+ rm -f $(TAGS_FILE)
1585
+ endif
1584
1586
@$(ECHO) "Generating tags for local sources (INO an PDE files as C++): "
1585
1587
$(CTAGS_CMD) $(TAGS_FILE) --langmap=c++:.ino --langmap=c++:.pde $(LOCAL_SRCS)
1586
1588
ifneq ($(words $(ARDUINO_LIBS ) ) , 0)
You can’t perform that action at this time.
0 commit comments