mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Add Makefile rule for generating Exuberant Ctags tags file
This commit is contained in:
parent
538035d2e2
commit
e9cd546065
2 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
INSTALL_DIR=$(PWD)/../install
|
||||
ECTAGS_LANGS = Make,C,C++,Sh
|
||||
TAGS_FILES = src/*.[ch] src/backend/*.[ch] src/root/*.[ch] src/tk/*.[ch]
|
||||
|
||||
.PHONY: all clean test install
|
||||
|
||||
|
@ -8,13 +10,17 @@ all:
|
|||
clean:
|
||||
$(QUIET)$(MAKE) -C src -f posix.mak clean
|
||||
$(QUIET)$(MAKE) -C test -f Makefile clean
|
||||
$(RM) tags
|
||||
|
||||
test:
|
||||
$(QUIET)$(MAKE) -C test -f Makefile
|
||||
# Creates Exuberant Ctags tags file
|
||||
tags: posix.mak $(TAGS_FILES)
|
||||
ctags --sort=yes --links=no --excmd=number --languages=$(ECTAGS_LANGS) \
|
||||
--langmap='C++:.c' --extra=+f --file-scope=yes --fields=afikmsSt --totals=yes posix.mak $(TAGS_FILES)
|
||||
|
||||
install: all
|
||||
$(MAKE) INSTALL_DIR=$(INSTALL_DIR) -C src -f posix.mak install
|
||||
cp -r samples $(INSTALL_DIR)
|
||||
mkdir -p $(INSTALL_DIR)/man
|
||||
cp -r docs/man/* $(INSTALL_DIR)/man/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue