]> granicus.if.org Git - file/commitdiff
Remove magic dir before trying to compile magic, to make it easier to recover from...
authorReuben Thomas <rrt@sc3d.org>
Tue, 4 Jan 2011 18:42:58 +0000 (18:42 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 4 Jan 2011 18:42:58 +0000 (18:42 +0000)
magic/Makefile.am

index 1ba92117b2e12c8a5b9a00c94dcbbf302ed48659..421082fe5d7dc410cbb4b080b860eac69d364ab3 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $File: Makefile.am,v 1.57 2010/09/20 19:19:16 rrt Exp $
+# $File: Makefile.am,v 1.58 2010/11/01 18:36:46 rrt Exp $
 #
 MAGIC_FRAGMENT_BASE = Magdir
 MAGIC_DIR = $(top_srcdir)/magic
@@ -248,6 +248,6 @@ FILE_COMPILE_DEP = $(FILE_COMPILE)
 endif
 
 ${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP)
+       @rm -fr magic
        @mkdir magic && cp -p $(EXTRA_DIST) magic
        $(FILE_COMPILE) -C -m magic
-       @rm -fr magic