about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-02-09 20:53:50 +0000
committerEric Wong <normalperson@yhbt.net>2012-02-09 20:53:50 +0000
commit9276d19087b7d0d50c1791e1c7cd7eafc648b672 (patch)
tree5936ea5bc457b5a1a82ea90c122ab6af8d8f98b4
parent9a8d0fa78656e136bad5cbb913a3d50a29aa9c44 (diff)
downloadcmogstored-9276d19087b7d0d50c1791e1c7cd7eafc648b672.tar.gz
By removing objects instead of touching source to force
rebuilds, we can avoid unnecessary warnings if a hacker
has a file open in their $EDITOR.
-rw-r--r--build-aux/sparse.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/sparse.mk b/build-aux/sparse.mk
index ae54736..031820b 100644
--- a/build-aux/sparse.mk
+++ b/build-aux/sparse.mk
@@ -1,5 +1,5 @@
 # sparse warns a little too much by default, but it's better than nothing...
 SPARSE_FLAGS = -Wdefault-bitfield-sign
 sparse:
-        touch $(addprefix $(top_srcdir)/,$(cmogstored_SOURCES))
+        $(RM) $(cmogstored_OBJECTS)
         $(MAKE) CC=cgcc CFLAGS="$(CFLAGS) $(SPARSE_FLAGS)"