automake-patches
[Top][All Lists]
Advanced

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

Re: FYI: use api version


From: Tom Tromey
Subject: Re: FYI: use api version
Date: 27 Jan 2002 15:15:35 -0700

>>>>> "adl" == Alexandre Duret-Lutz <address@hidden> writes:

adl> /usr/local/bin/fooaclocal
adl> /usr/local/bin/fooaclocal-1.5c
adl> /usr/local/bin/fooautomake
adl> /usr/local/bin/fooautomake-1.5c
adl> Is this intended?  

It is what I intended.

My rationale here was that people using --program-prefix would
probably be surprised when we installed a program without the prefix.
Of course this (like everything) is open for discussion.

adl> I was expecting the following instead:
adl> /usr/local/bin/fooaclocal
adl> /usr/local/bin/aclocal-1.5c
adl> /usr/local/bin/fooautomake
adl> /usr/local/bin/automake-1.5c
adl> That way the rebuild rules (in generated Makefile's) still work.

Those rebuild rules never worked if you used --program-prefix.
I think they do work if you run:

    ./configure AUTOMAKE=fooautomake ACLOCAL=fooaclocal

adl> (On a similar topic, the versioned binaries are not uninstalled.)

Thanks.  Fixed as appended.

Tom


Index: ChangeLog
from  Tom Tromey  <address@hidden>

        * Makefile.am (uninstall-hook): New target.

Index: Makefile.am
===================================================================
RCS file: /cvs/automake/automake/Makefile.am,v
retrieving revision 1.183
diff -u -r1.183 Makefile.am
--- Makefile.am 2002/01/22 10:02:50 1.183
+++ Makefile.am 2002/01/27 21:55:23
@@ -49,6 +49,13 @@
          ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
        done
 
+uninstall-hook:
+       @for p in $(bin_SCRIPTS); do \
+         f="`echo $$p|sed '$(transform)'`"; \
+         fv="$$f-$(APIVERSION)"; \
+         rm -f $(DESTDIR)$(bindir)/$$fv; \
+       done
+
 ################################################################
 ##
 ## Everything past here is useful to the maintainer, but probably not



reply via email to

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