From 3a4359c51042b676ac466a0d079b46561c7246ec Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 30 Jun 2011 02:14:49 +0000 Subject: [PATCH] fix constant creation of the cmd list in case the cmd_*.c files have been updated, but the resulting command list isnt different git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1927 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 4 ++++ urjtag/src/cmd/Makefile.am | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index e5294cc7..9b445948 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -3,6 +3,10 @@ * src/tap/cable.c (urj_tap_cable_wait): Tweak code style to silence warnings thrown up by gcc-4.6 and cause build failures with -Werror. + * src/cmd/Makefile.am (generated_cmd_list.h): Always update the file to + avoid constant generation loops where other files are newer, but not + a different list of commands. + 2011-06-27 Jie Zhang * include/urjtag/Makefile.am (nodist_pkginclude_HEADERS): New and diff --git a/urjtag/src/cmd/Makefile.am b/urjtag/src/cmd/Makefile.am index b1a8cb5c..f6432ebc 100644 --- a/urjtag/src/cmd/Makefile.am +++ b/urjtag/src/cmd/Makefile.am @@ -85,8 +85,7 @@ generated_cmd_list.h: $(all_cmd_files) cmds=`$(SED) -n '/^const urj_cmd_t urj_cmd_/{s:.*urj_cmd_::;s: =.*::;p}' $^`; \ for c in $$cmds ; do \ printf '#ifndef URJ_CMD_SKIP_%s\n_URJ_CMD(%s)\n#endif\n' $$c $$c; \ - done > $@.tmp; \ - cmp -s $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@ + done > $@ EXTRA_DIST = generated_cmd_list.h MAINTAINERCLEANFILES = generated_cmd_list.h