bug-automake
[Top][All Lists]
Advanced

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

automake-1.7b feedback (2)


From: Bruno Haible
Subject: automake-1.7b feedback (2)
Date: Sun, 16 Nov 2003 19:01:12 +0100
User-agent: KMail/1.5

When I override the clean-am target, I get a warning

tests/Makefile.am:165: user target `clean-am' defined here...
automake-1.7b: ... overrides Automake target `clean-am' defined here
tests/Makefile.am:165: consider using clean-am-local instead of clean-am

However, when I follow this advice and use 'clean-am-local', the
generated Makefile rule for 'clean-am' doesn't depend on 'clean-am-local'.
In fact, nothing depends on 'clean-am-local', and so the 'clean-am-local'
rule is not executed when I do "make clean".

Here are the changes on the Makefile that my use of 'clean-am-local' has:

*** Makefile.bak        2003-11-15 19:10:07.000000000 +0100
--- Makefile    2003-11-15 19:13:43.000000000 +0100
***************
*** 737,742 ****
--- 737,745 ----
        @echo "it deletes files that may require special tools to rebuild."
  clean: clean-am
  
+ clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
+       mostlyclean-am
+ 
  distclean: distclean-am
        -rm -f Makefile
  distclean-am: clean-am distclean-compile distclean-generic \
***************
*** 800,806 ****
          $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c
  
  # Clean up after Solaris cc.
! clean-am:
        rm -rf SunWS_cache
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.
--- 803,809 ----
          $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c
  
  # Clean up after Solaris cc.
! clean-am-local:
        rm -rf SunWS_cache
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.


Likewise for distclean-am: Automake tells me

tests/Makefile.am:78: user target `distclean-am' defined here...
automake-1.7b: ... overrides Automake target `distclean-am' defined here
tests/Makefile.am:78: consider using distclean-am-local instead of distclean-am

But when I define a rule for 'distclean-am-local' instead of
'distclean-am', automake generates a Makefile that doesn't invoke
'distclean-am-local'.


Likewise for install-exec-am: Automake tells me

src/Makefile.am:149: user target `install-exec-am' defined here...
automake-1.7b: ... overrides Automake target `install-exec-am' defined here
src/Makefile.am:149: consider using install-exec-am-local instead of 
install-exec-am

But when I define a rule for 'install-exec-am-local' instead of
'install-exec-am', automake generates a Makefile that invokes
'install-exec-local', but not 'install-exec-am-local'.


Bruno





reply via email to

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