Rename COVERAGE_SOURCES to COVERAGE_FILES to avoid Automake warning.
authorBen Pfaff <blp@nicira.com>
Sat, 30 May 2009 00:09:11 +0000 (17:09 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 30 May 2009 00:14:44 +0000 (17:14 -0700)
<foo>_SOURCES ordinarily lists the source files for <foo>, but that wasn't
true in this case so Automake issued a warning.

lib/automake.mk
lib/coverage.h

index 255e2fd35861b7b6f351eacb82ec1df0f5c7d2cd..3ea9d7e15993799252405ba869c63807507e7572 100644 (file)
@@ -159,7 +159,7 @@ install-data-local:
        $(MKDIR_P) $(DESTDIR)$(LOGDIR)
 
 # All the source files that have coverage counters.
-COVERAGE_SOURCES = \
+COVERAGE_FILES = \
        lib/dpif.c \
        lib/flow.c \
        lib/hmap.c \
@@ -178,7 +178,7 @@ COVERAGE_SOURCES = \
        secchan/pktbuf.c \
        vswitchd/bridge.c \
        vswitchd/mgmt.c
-lib/coverage-counters.c: $(COVERAGE_SOURCES) lib/coverage-scan.pl
-       (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_SOURCES)) > $@.tmp
+lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
+       (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
        mv $@.tmp $@
 EXTRA_DIST += lib/coverage-scan.pl
index 1d5bcc2fd18befd461034f5515d2848ec7dfbcc1..f3156d9c991602dc9cfa64c9e48f3ac798962d44 100644 (file)
@@ -55,7 +55,7 @@ struct coverage_counter {
 
 /* Increments the counter with the given NAME.  Coverage counters need not be
  * declared explicitly, but when you add the first coverage counter to a given
- * file, you must also add that file to COVERAGE_SOURCES in lib/automake.mk. */
+ * file, you must also add that file to COVERAGE_FILES in lib/automake.mk. */
 #define COVERAGE_INC(NAME)                              \
     do {                                                \
         extern struct coverage_counter NAME##_count;    \