]> granicus.if.org Git - file/commitdiff
fix cross compilation. from Grant Erickson <gerickson@nuovations.com>
authorChristos Zoulas <christos@zoulas.com>
Tue, 17 Jun 2008 17:49:11 +0000 (17:49 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 17 Jun 2008 17:49:11 +0000 (17:49 +0000)
magic/Makefile.am

index eebfa448697d1cdf7d1171ca10e15e0f5bdf0065..a92f4f9b7857b664bb8f635362bd896307461f3e 100644 (file)
@@ -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 $@