;dev: tools: fix make etags

This commit is contained in:
Simon Michael 2023-04-27 09:17:03 -10:00
parent f5c3bbcaf0
commit 400f401d11
2 changed files with 11 additions and 24 deletions

13
.ctags
View File

@ -1,14 +1,9 @@
--exclude=.build
--exclude=.idea
--exclude=.shake
--exclude=.stack-work
--exclude=.vagrant
--exclude=.vscode
--exclude=.*
--exclude=_*
--exclude=bin
--exclude=doc/irc
--exclude=doc/profs
--exclude=dist
--exclude=dist*
--exclude=examples
--exclude=bootstrap*
--exclude=excanvas*
@ -16,6 +11,6 @@
--exclude=jquery*
--exclude=typeahead*
--exclude=old
--exclude=site/doc
--exclude=site/files
--exclude=site/out*
--exclude=site/src/1*
--exclude=hledger/test/addons/hledger-*

View File

@ -1102,22 +1102,13 @@ cabalusage: \
$(call def-help,cabalusage, show size of cabal working dirs if any )
-du -shc */dist* 2>/dev/null
# Tag haskell files with hasktags and just list the other main source files
# so they will be traversed by tags-search/tags-query-replace.
# etags:
# rm -f TAGS
# hasktags -e $(SOURCEFILES)
# for f in Makefile $(WEBCODEFILES) $(HPACKFILES) $(CABALFILES) $(DOCSOURCEFILES); do \
# printf " \n$$f,1\n" >> TAGS; \
# done
# Tag:
# - haskell files, with hasktags
# - everything else not excluded by .ctags, with (exuberant) ctags
# - files currently missed by the above, just their names (docs, hpack, cabal..)
etags:$(call def-help,etags, generate emacs tag files for source code navigation )
# Generate an emacs TAGS file. Tag:
# 1. haskell source files with hasktags
# 2. other source files recognised by (exuberant) ctags and not excluded by .ctags. Keep .ctags up to date.
# 3. some extra files missed by the above, as just their file names (for tags-search, tags-query-replace etc.)
etags:$(call def-help,etags, generate emacs TAGS file for haskell source and other project files )
hasktags -e $(SOURCEFILES)
ctags -a -e -R
ctags -a -e -R
for f in \
$(WEBTEMPLATEFILES) \
$(DOCSOURCEFILES) \
@ -1125,6 +1116,7 @@ etags:$(call def-help,etags, generate emacs tag files for source code navigation
$(CABALFILES) \
Shake.hs \
; do printf " \n$$f,1\n" >> TAGS; done
-etagsls >TAGS.files
cleantags: \
$(call def-help-hide,cleantags, remove tag files )