* Makefile.in (taz): Get the version number from AM_INIT_AUTOMAKE in

configure.in if it is present.
This commit is contained in:
Ian Lance Taylor 1997-08-10 18:41:42 +00:00
parent abb742acba
commit 19ebe12304
2 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,12 @@
Sun Aug 10 14:41:11 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (taz): Get the version number from AM_INIT_AUTOMAKE in
configure.in if it is present.
Sat Aug 9 00:58:01 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (LD_FOR_TARGET): Change ld.new to ld-new.
Fri Aug 8 16:30:13 1997 Doug Evans <dje@canuck.cygnus.com>
* config.sub: Recognize `arc' cpu.

View File

@ -248,8 +248,8 @@ AS_FOR_TARGET = ` \
fi`
LD_FOR_TARGET = ` \
if [ -f $$r/ld/ld.new ] ; then \
echo $$r/ld/ld.new ; \
if [ -f $$r/ld/ld-new ] ; then \
echo $$r/ld/ld-new ; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
echo $(LD); \
@ -1588,8 +1588,12 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
else true; fi
chmod og=u `find . -print`
$(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) \
VER=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`
if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
else \
ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
fi; \
$(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
do-tar-gz:
echo "==> Making $(TOOL)-$(VER).tar.gz"