blob: d29260c29480e8d306301f68d79a16190379b379 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# -*- mode: makefile-gmake; indent-tabs-mode: t -*-
SRCS := $(shell $(GIT) ls-files \
*.[chy] *.def *.inc *.rb \
ccan/ coroutine/ include/ internal/ missing/ \
'enc/**/*.[ch]' 'win32/**/*.[ch]' \
)
TAGS: $(SRCS)
@echo updating $@
@tmp=$$(mktemp); \
trap 'rm -f "$$tmp"' 0; \
{ \
$(GIT) grep -h --no-line-number -o '^ *# *define *RBIMPL_ATTR_[A-Z_]*(*' -- include | \
sed 's/^ *# *define *//;/_H$$/d;y/(/+/' | sort -u && \
echo 'NORETURN+'; \
} > "$$tmp" && \
ctags -e -I@"$$tmp" -h .def.inc --langmap=c:+.y.def.inc $(^)
|