This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
tags and dist target broken with VPATH
- To: automake@gnu.org
- Subject: tags and dist target broken with VPATH
- From: Ganesan Rajagopal <rganesan@novell.com>
- Date: 16 Jun 1999 11:50:16 +0530
Hi,
Automake does not handle TAGS correctly when VPATH is used. I investigated
the generated rule for tags and found the TAGS rule as follows.
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
This will not work in the presence of VPATH. The fix is to change
list='$(SOURCES) $(HEADERS)'
to
list='$^'
Am I missing something obvious? I haven't figured out why make dist is
broken.
Ganesan