# HG changeset patch # User flameeyes # Date 1278030627 0 # Node ID aa0b01031adf08f900195daf380ef7c6d804c9ab # Parent c7c32da068ab5348496b0d5300fe3afd28c87787 tablegen: the executable depends on tablegen headers as well Make sure that the *_tablegen.h header is listed in the dependencies, but filter it out in the compile line. diff -r c7c32da068ab -r aa0b01031adf Makefile --- a/Makefile Fri Jul 02 00:20:26 2010 +0000 +++ b/Makefile Fri Jul 02 00:30:27 2010 +0000 @@ -652,8 +652,8 @@ $(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=0 endif -$(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)tableprint.c - $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS) +$(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)%_tablegen.h $(SUBDIR)tableprint.c + $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $(filter %.c,$^) $(HOSTLIBS) $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF) $(M)./$< > $@