shell pwd: non-POSIX variable name ??

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

 



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



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux