]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Never ever delete vex_svnversion.h except when doing 'make version'.
authorJulian Seward <jseward@acm.org>
Tue, 26 Jul 2005 22:44:27 +0000 (22:44 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 26 Jul 2005 22:44:27 +0000 (22:44 +0000)
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

VEX/Makefile

index b44f3a2951b15594bf57450f64e216b104d93f9d..61809376cc66934734c18d5775f24f035165a40c 100644 (file)
@@ -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