From: Ben Kaduk Date: Tue, 26 Oct 2010 02:15:49 +0000 (-0400) Subject: Fix build on systems with .y.o rules X-Git-Tag: upstream/1.8.0_pre1^2~4624 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5bf95621ae2ffff6e847c12e16f31db534fd7d0b;p=packages%2Fo%2Fopenafs.git Fix build on systems with .y.o rules 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 Tested-by: Derrick Brashear --- diff --git a/src/comerr/Makefile.in b/src/comerr/Makefile.in index 1991f4bae..c59d3fd6a 100644 --- a/src/comerr/Makefile.in +++ b/src/comerr/Makefile.in @@ -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