mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-16 14:21:48 -08:00
Slightly better syntax for the case in which ETAGS is not defined.
This commit is contained in:
parent
e5e7c3380c
commit
eb81631ebb
1 changed files with 5 additions and 4 deletions
|
|
@ -246,12 +246,13 @@ selfbuild:
|
|||
# like "@si::foo" and "@(defun si::foo".
|
||||
# This rule is allowed to fail when etags does not exist.
|
||||
TAGS:
|
||||
echo > $@;
|
||||
test "x$(ETAGS)" != "x" && \
|
||||
srcfiles=`find $(srcdir)/c $(srcdir)/h -name '*.[chd]'`; \
|
||||
echo > $@
|
||||
if test "x$(ETAGS)" != "x"; then \
|
||||
srcfiles=`find $(srcdir)/c $(srcdir)/h -name '*.[chd]'` && \
|
||||
$(ETAGS) --language=c -o $@ $$srcfiles && \
|
||||
$(ETAGS) --language=none -o $@ --append \
|
||||
--regex='/@\([-:*a-zA-z]+\)/\1/' \
|
||||
--regex='/@(defun \([-:*a-zA-z]+\)/\1/' \
|
||||
$$srcfiles
|
||||
$$srcfiles; \
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue