;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=.*
--exclude=.idea
--exclude=.shake
--exclude=.stack-work
--exclude=.vagrant
--exclude=.vscode
--exclude=_* --exclude=_*
--exclude=bin --exclude=bin
--exclude=doc/irc --exclude=doc/irc
--exclude=doc/profs --exclude=doc/profs
--exclude=dist --exclude=dist*
--exclude=examples --exclude=examples
--exclude=bootstrap* --exclude=bootstrap*
--exclude=excanvas* --exclude=excanvas*
@ -16,6 +11,6 @@
--exclude=jquery* --exclude=jquery*
--exclude=typeahead* --exclude=typeahead*
--exclude=old --exclude=old
--exclude=site/doc --exclude=site/out*
--exclude=site/files --exclude=site/src/1*
--exclude=hledger/test/addons/hledger-* --exclude=hledger/test/addons/hledger-*

View File

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