Skip to content

Commit 4fffe6e

Browse files
committed
make: tag -> etags; add tag-all, tag-PKG
1 parent 6658981 commit 4fffe6e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Makefile

+9-5
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,13 @@ manuals: Shake $(call def-help,manuals, regenerate and commit CLI help and manua
819819
./Shake manuals
820820
git commit -m ";doc: regen manuals" -m "[ci skip]" hledger*/hledger*.{1,5,info,txt} hledger/Hledger/Cli/Commands/*.txt
821821

822+
tag-all: $(call def-help,tag-all, make git release tags and for the project and all packages )
823+
for p in $(PACKAGES); do make -s tag-$$p; done
824+
git tag -fs `cat .version` -m "Release `cat .version`, https://hledger.org/release-notes.html#hledger-`cat .version | sed -e 's/\./-/g'`"
825+
826+
tag-%: $(call def-help,tag-PKG, make a git release tag for PKG )
827+
git tag -fs $*-`cat $*/.version` -m "Release $*-`cat $*/.version`"
828+
822829
# hackageupload-dry: \
823830
# $(call def-help,hackageupload-dry,\
824831
# upload all packages to hackage; dry run\
@@ -975,12 +982,9 @@ cabalusage: \
975982
$(call def-help,cabalusage, show size of cabal working dirs if any )
976983
-du -shc */dist* 2>/dev/null
977984

978-
tag: emacstags-ctags \
979-
$(call def-help,tag, generate tag files for source code navigation (for emacs) )
980-
981985
# Tag haskell files with hasktags and just list the other main source files
982986
# so they will be traversed by tags-search/tags-query-replace.
983-
# emacstags:
987+
# etags:
984988
# rm -f TAGS
985989
# hasktags -e $(SOURCEFILES)
986990
# for f in Makefile $(WEBCODEFILES) $(HPACKFILES) $(CABALFILES) $(DOCSOURCEFILES); do \
@@ -991,7 +995,7 @@ tag: emacstags-ctags \
991995
# - haskell files, with hasktags
992996
# - everything else not excluded by .ctags, with (exuberant) ctags
993997
# - files currently missed by the above, just their names (docs, hpack, cabal..)
994-
emacstags-ctags:
998+
etags:$(call def-help,etags, generate emacs tag files for source code navigation )
995999
hasktags -e $(SOURCEFILES)
9961000
ctags -a -e -R
9971001
for f in \

0 commit comments

Comments
 (0)