From: Julian Seward Date: Tue, 26 Jul 2005 22:44:27 +0000 (+0000) Subject: Never ever delete vex_svnversion.h except when doing 'make version'. X-Git-Tag: svn/VALGRIND_3_0_1^2~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9be711bb37549a95708625129a865712bff43a4;p=thirdparty%2Fvalgrind.git Never ever delete vex_svnversion.h except when doing 'make version'. Purpose is so that 'make distclean' or 'make clean' in a tarball'd build do not delete it, and so do not render the tree unbuildable. git-svn-id: svn://svn.valgrind.org/vex/trunk@1301 --- diff --git a/VEX/Makefile b/VEX/Makefile index b44f3a2951..61809376cc 100644 --- a/VEX/Makefile +++ b/VEX/Makefile @@ -92,13 +92,14 @@ libvex.a: $(LIB_OBJS) rm -f libvex.a ar clq libvex.a $(LIB_OBJS) +# This doesn't get rid of priv/main/vex_svnversion.h, because +# that can't be regenerated in the final Valgrind tarball, and +# so if 'make clean' did get rid of it, then in the tarball, +# doing 'make ; make clean ; make' (or distclean) would fail. clean: rm -f $(LIB_OBJS) libvex.a vex test_main.o \ pub/libvex_guest_offsets.h -distclean: clean - rm -f priv/main/vex_svnversion.h - version: rm -f priv/main/vex_svnversion.h echo -n "\"" > priv/main/vex_svnversion.h