2009-02-27 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Sat, 28 Feb 2009 01:27:30 +0000 (01:27 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 28 Feb 2009 01:27:30 +0000 (01:27 +0000)
* Makeconfig (%.v.i): Depend on Makeconfig.
Exclude % lines from initial #-comment removal.

Makeconfig

index 5451560..c904a83 100644 (file)
@@ -793,9 +793,9 @@ ifeq (yes, $(build-shared))
 # `FOO.v', and along with that `FOO.v.i' should be given dependencies
 # listing both its input files, and any header files that it may reference
 # (but no commands).
-%.v.i: $(common-objpfx)config.h
-       sed 's/#.*$$//;/^[      ]*$$/d;s/^[     ]*%/#/' \
-           $(filter-out FORCE %.h,$^) \
+%.v.i: $(common-objpfx)config.h $(..)Makeconfig
+       sed '/^[        ]*%/!s/#.*$$//;/^[      ]*$$/d;s/^[     ]*%/#/' \
+           $(filter-out FORCE %.h $(..)Makeconfig,$^) \
        | $(CC) -E -undef $(CPPFLAGS) -x assembler-with-cpp - \
                   > $@T
        mv -f $@T $@