From f8ecd69dfa873d777201c380c90789f1c39c0e0a Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 17 Jun 2008 17:49:11 +0000 Subject: [PATCH] fix cross compilation. from Grant Erickson --- magic/Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/magic/Makefile.am b/magic/Makefile.am index eebfa448..a92f4f9b 100644 --- a/magic/Makefile.am +++ b/magic/Makefile.am @@ -1,5 +1,5 @@ # -# $File:$ +# $File: Makefile.am,v 1.40 2008/04/23 03:52:38 christos Exp $ # MAGIC_FRAGMENT_BASE = Magdir MAGIC_FRAGMENT_DIR = $(top_srcdir)/magic/$(MAGIC_FRAGMENT_BASE) @@ -223,10 +223,12 @@ CLEANFILES = ${MAGIC} # the target's magic file if IS_CROSS_COMPILE FILE_COMPILE = file +FILE_COMPILE_DEP = else FILE_COMPILE = $(top_builddir)/src/file +FILE_COMPILE_DEP = $(FILE_COMPILE) endif -${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE) +${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP) $(FILE_COMPILE) -C -m $(MAGIC_FRAGMENT_DIR) @mv $(MAGIC_FRAGMENT_BASE).mgc $@ -- 2.40.0