bug-automake
[Top][All Lists]
Advanced

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

Problem with makefile variable expansion and dependency tracking


From: Ray Simard
Subject: Problem with makefile variable expansion and dependency tracking
Date: Wed, 30 Jun 2004 16:38:42 -0700
User-agent: Mozilla Thunderbird 0.5+ (X11/20040212)

Hello!

I have run into a problem with the dependency-tracking code when the
object is specified with a makefile variable. It seems to be here, in
depout.m4:

# We invoke sed twice because it is the simplest approach to
 # changing $(DEPDIR) to its actual value in the expansion.
 for file in `sed -n '
   /^DEP_FILES = .*\\\\$/ {
     s/^DEP_FILES = //
     :loop
       s/\\\\$//
       p
       n
       /\\\\$/ b loop
     p
   }
   /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
      sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   # Make sure the directory exists.
   test -f "$dirpart/$file" && continue
   fdir=`AS_DIRNAME(["$file"])`
   AS_MKDIR_P([$dirpart/$fdir])
   # echo "creating $dirpart/$file"
   echo '# dummy' > "$dirpart/$file"
(etc...)

The $(DEPDIR) variable is expanded, as can be seen above. Nothing else
is.

In this example, files called, literally, '$(idlname)-xxxx.Po' are
created. $(idlname) is not expanded.

DEP_FILES = ./$(DEPDIR)/$(idlname)-common.Po \
      ./$(DEPDIR)/$(idlname)-cpp-common.Po \
      ./$(DEPDIR)/$(idlname)-cpp-skels.Po \
      ./$(DEPDIR)/$(idlname)-cpp-stubs.Po \
      ./$(DEPDIR)/$(idlname)-skels.Po \
      ./$(DEPDIR)/$(idlname)-stubs.Po

Ray Simard
address@hidden




reply via email to

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