patch 9.2.0824: Makefile: Make tags depends on configure
Problem: Makefile: Make tags depends on configure
Solution: Separate the make tags into a separate makefile
(Christoffer Aasted)
closes: #20707
Signed-off-by: Christoffer Aasted <dezzadk@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
1 parent
bb00e0ffb2
commit
2262053f32
6 files changed
+27
-5
No files matched your search
@@ -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 \
|
||||
|
||||
@@ -30,9 +30,12 @@ first:
|
||||
@echo "If there are problems, cd to the src directory and run make there"
|
||||
cd src && $(MAKE) $@
|
||||
|
||||
tags notags:
|
||||
$(MAKE) -C src/ -f Make_tags.mak $@
|
||||
|
||||
# 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
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# tags
|
||||
#
|
||||
|
||||
include Make_all.mak
|
||||
-include auto/config.mk
|
||||
|
||||
# Override with `make TAGPRG='...' tags`
|
||||
TAGPRG ?= ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S -f tags
|
||||
|
||||
notags:
|
||||
-rm -f tags
|
||||
|
||||
# You can ignore error messages for missing files.
|
||||
tags TAGS: notags
|
||||
$(TAGPRG) $(TAGS_FILES)
|
||||
+3
-3
@@ -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.
|
||||
# Configure sets portable TAGPRG, else modern ctags is used.
|
||||
# You can ignore error messages for missing files.
|
||||
tags TAGS: notags
|
||||
$(TAGPRG) $(TAGS_FILES)
|
||||
$(MAKE) -f Make_tags.mak tags
|
||||
|
||||
# Build the cscope database.
|
||||
# This may search more files than necessary.
|
||||
|
||||
@@ -759,6 +759,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
824,
|
||||
/**/
|
||||
823,
|
||||
/**/
|
||||
|
||||
Reference in new issue
Block a user