Letting error2 depend on config.h instead of Makefile should be no
worse, and it does not cause all dependencies to be recreated in the
common case where config.h remains unchanged after reconfiguration.
$(hostbin_dir)/error2: error2.c | $(hostbin_dir)
@[ -z "$(Q)" ] || echo 'HCC $<'
$(Q) $(HOSTCC) -o $@ $<
-error2.h: $(hostbin_dir)/error2 Makefile
+error2.h: $(hostbin_dir)/error2 config.h
@[ -z "$(Q)" ] || echo 'ER2 $<'
@echo "$(object_executable_matrix)" | $< > $@