Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Filelist
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ SRC_ALL = \
ci/ddebs.list \
ci/pinned-pkgs \
src/Make_all.mak \
src/Make_tags.mak \
src/README.md \
src/alloc.c \
src/alloc.h \
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ first:
@echo "If there are problems, cd to the src directory and run make there"
cd src && $(MAKE) $@

tags:
$(MAKE) -C src/ -f Make_tags.mak tags

# Some make programs use the last target for the $@ default; put the other
# targets separately to always let $@ expand to "first" by default.
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests testtiny test_libvterm unittests testclean clean distclean:
all install uninstall tools config configure reconfig proto depend lint types test scripttests testtiny test_libvterm unittests testclean clean distclean:
@if test ! -f src/auto/config.mk; then \
cp src/config.mk.dist src/auto/config.mk; \
fi
Expand Down
2 changes: 1 addition & 1 deletion src/Make_all.mak
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Common Makefile, defines the list of tests to run and other things.
# Common Makefile - shared platform independent
#

# Argument for running ctags.
Expand Down
16 changes: 16 additions & 0 deletions src/Make_tags.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# tags
#

include Make_all.mak

ifeq ($(strip $(TAGPRG)),)
TAGPRG = ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S -f tags
endif

notags:
-rm -f tags

# You can ignore error messages for missing files.
tags TAGS: notags
$(TAGPRG) $(TAGS_FILES)
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2201,12 +2201,12 @@ proto/gui_gtk_gresources.pro: auto/gui_gtk_gresources.c
fi

notags:
-rm -f tags
$(MAKE) -f Make_tags.mak notags

# Note: tags is made for the currently configured version.
# You can ignore error messages for missing files.
tags TAGS: notags
$(TAGPRG) $(TAGS_FILES)
tags TAGS:
$(MAKE) -f Make_tags.mak tags

# Build the cscope database.
# This may search more files than necessary.
Expand Down
Loading