autoconf
[Top][All Lists]
Advanced

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

shell pwd: non-POSIX variable name ??


From: Jules Colding
Subject: shell pwd: non-POSIX variable name ??
Date: Thu, 29 Mar 2007 14:25:31 +0200

Hi,

Using automake 1.10 I get the above warning (or a variance of it)
whenever using, say:

   CWD             = $(shell pwd)
   BARE_NAMES      = $(notdir $(IDL_FILES))
   LOCAL_IDL_FILES = $(addprefix $(CWD)/,$(BARE_NAMES))
   OBJS            = $(patsubst %.c,%.o,$(STUB_SRC))

in my "Makefile.am". Another source of errors is when I do:

   %-$(LIBBRUTUS_CURRENT).$(LIBBRUTUS_REVISION).pc: %.pc
         cp $< $@

then I'm told:

   '%'-style pattern rules are a GNU make extension

And when I do:

   EXTRA_DIST = 
$(pkgconfig_DATA:-$(LIBBRUTUS_CURRENT).$(LIBBRUTUS_REVISION).pc=.pc.in)

then the message is:

   pkgconfig_DATA:-$(LIBBRUTUS_CURRENT: non-POSIX variable name

Needless to say that all of this worked without any warnings prior to
automake-1.10. 

What is the recommended and portable way of doing what I do above to
avoid the warnings and to be nice to automake?

Thanks a lot,
  jules





reply via email to

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