libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool--gary--1.0--patch-37


From: Noah Misch
Subject: Re: libtool--gary--1.0--patch-37
Date: Mon, 9 Aug 2004 07:54:35 -0700
User-agent: Mutt/1.5.6i

On Mon, Aug 09, 2004 at 12:31:38PM +0100, Gary V. Vaughan wrote:

>       * Makefile.am ($(top_srcdir)/config/ltmain.sh): Continue
>       gracefully when $srcdir is read-only, such as during make
>       distcheck.
>       ($(top_srcdir)/m4/ltversion.m4): Ditto.

Would it not be cleaner to store newly generated versions of these files in the
build directory and let the VPATH mechanism take care of finding them?  That
would simplify the rules and also let folks actually update these files even
when the source tree is read-only.

Maybe something like this (untested)?

m4:
        $(mkdir_p) $@

m4/ltversion.m4: m4/ltversion.in configure.ac stamp-vcl
        set -- `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; \
        rm -f m4/ltversion.tmp; \
        serial=`echo $$1 | sed 's,^1[.],,g'`; \
        input="$<"; \
        $(edit) -e "s,@MACRO_REVISION\@,$$1,g" \
                -e "s,@MACRO_SERIAL\@,$$serial,g" \
                $< > m4/ltversion.tmp; \
        chmod a-w m4/ltversion.tmp; \
        mv -f m4/ltversion.tmp $@





reply via email to

[Prev in Thread] Current Thread [Next in Thread]