4a00ea
diff --git a/common-src/Makefile.am b/common-src/Makefile.am
4a00ea
index 40e2eb6..93520b5 100644
4a00ea
--- a/common-src/Makefile.am
4a00ea
+++ b/common-src/Makefile.am
4a00ea
@@ -146,6 +146,7 @@ genversion_SOURCES = genversion.c svn-info.h
4a00ea
 genversion_LDADD = $(libamanda_la_LIBADD)	\
4a00ea
 	../gnulib/libgnu.la
4a00ea
 
4a00ea
+genversion.@OBJEXT@: $(genversion_SOURCES) genversion.h
4a00ea
 genversion.h: $(top_builddir)/config.status
4a00ea
 	-rm -f $@ $@.new
4a00ea
 	echo '#define CC "$(CC)"' > $@.new