Fix build on systems with .y.o rules
authorBen Kaduk <kaduk@mit.edu>
Tue, 26 Oct 2010 02:15:49 +0000 (22:15 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Oct 2010 04:40:12 +0000 (21:40 -0700)
On systems with system .y.o rules (such as FreeBSD), the system
rule for making error_table.o from error_table.y can bypass
AFS_CCRULE and thus fail to pull in the necessary include paths
for compilation.  Present an explicit dependency on error_table.c
to force that file to be generated, and then our .c.o rule gets
used as desired.

Change-Id: I88a6cf15441e0bacd73888b941d6c268786c5d2a
Reviewed-on: http://gerrit.openafs.org/3145
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/comerr/Makefile.in

index 1991f4b..c59d3fd 100644 (file)
@@ -86,6 +86,6 @@ test:
        cd test; $(MAKE)
 
 compile_et.o:  AFS_component_version_number.c
-error_table.o: et_lex.lex.c
+error_table.o: et_lex.lex.c error_table.c
 
 include ../config/Makefile.version