From e49bf687fe548f8addb7f1282a7c23261a55c34a Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sun, 10 Jul 2011 13:54:20 +0100 Subject: [PATCH] util: Cleanup generation of dirpath.h dirpath.h is only copied into place if it has changed. However, this means that the timestamp of dirpath.h is never updated, causing make to always trigger the buildrule, even if the rule eventually does nothing. Instead, always copy in the new dirpath.h, which simplifies the make rules, and stops make from always building. Change-Id: I43ba9152473591c5afd9064ad6e58adda6823f11 Reviewed-on: http://gerrit.openafs.org/5084 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/util/Makefile.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/util/Makefile.in b/src/util/Makefile.in index 520ca29ce..80ae6918f 100644 --- a/src/util/Makefile.in +++ b/src/util/Makefile.in @@ -153,7 +153,7 @@ ${TOP_LIBDIR}/libafsutil_pic.a: util_pic.a # Use " as the sed boundary character because we lose anyway if that occurs # in path names. dirpath.h: ${srcdir}/dirpath.hin Makefile - ( sed \ + sed \ -e 's"@afsconfdir"${afsconfdir}"' \ -e 's"@viceetcdir"${viceetcdir}"' \ -e 's"@afssrvbindir"${afssrvbindir}"' \ @@ -165,10 +165,7 @@ dirpath.h: ${srcdir}/dirpath.hin Makefile -e 's"@afsbackupdir"${afsbackupdir}"' \ -e 's"@afsbosconfigdir"${afsbosconfigdir}"' \ -e 's"@afsdatadir"${afsdatadir}"' \ - ${srcdir}/dirpath.hin >dirpath.h.tmp && \ - if cmp dirpath.h.tmp dirpath.h >/dev/null ; then : ; else \ - mv dirpath.h.tmp dirpath.h ; fi) - rm -f dirpath.h.tmp + ${srcdir}/dirpath.hin >dirpath.h util.a: ${objects} AFS_component_version_number.o $(RM) -f util.a -- 2.39.5