[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Substitutions in _SOURCES
From: |
Philipp Thomas |
Subject: |
Substitutions in _SOURCES |
Date: |
Fri, 12 Apr 2002 18:47:32 +0200 |
User-agent: |
Mutt/1.3.16i |
I have a package that does in configure.in
GNOME_GEN_H_FILES=`cd $srcdir/src ; ls *.gen_h | xargs echo`
AC_SUBST(GNOME_GEN_H_FILES)
and then a subdir Makefile.am has
gnomemmc = wrap.cc $(GNOME_GEN_H_FILES:.gen_h=.cc) gnome--.cc
libgnomemm_la_SOURCES = $(gnomemmc) [.....]
And automake complains that this isn't allowed. So far it's behaving as
documented. But if I change the above to
gnomemm_gen_files = $(shell cd $(top_srcdir)/src; ls *.gen_h | xargs echo)
gnomemmc = wrap.cc $(gnomemm_gen_files:.gen_h=.cc) gnome--.cc
Automake will accept this, allthough it's in the end the same substitution,
only this time not via configure.
Question now is, if this is an acceptable workaround or a case that
automake should detect and also flag as error.
Philipp
--
Philipp Thomas <address@hidden>
SuSE Linux AG, Deutscherrnstr. 15-19, D-90429 Nuremberg, Germany
- Substitutions in _SOURCES,
Philipp Thomas <=