From e34333b7e3c28d66b58c0052e766e747afbdb7af Mon Sep 17 00:00:00 2001 From: Thomas Schilling <nominolo@gmail.com> Date: Mon, 16 Jul 2007 20:30:15 +0000 Subject: [PATCH] Add tags target to generate a tags file using 'hasktags'. (Unix only) --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index a6bb76f2c4..f88ff4e599 100644 --- a/Makefile +++ b/Makefile @@ -183,3 +183,11 @@ release: dist scp -r $(TMPDISTLOC)/release www.haskell.org:/home/haskell/cabal/release/cabal-$(CABALVERSION) ssh www.haskell.org 'cd /home/haskell/cabal/release && rm -f $(KIND) && ln -s cabal-$(CABALVERSION) $(KIND)' +# dirs that contain source files that should be tagged. Be careful to +# about using "." +TAGSSRCDIRS = Distribution Language + +# create ctags/etags files. +tags:: + find $(TAGSSRCDIRS) -name \*.\*hs | xargs hasktags + -- GitLab