2009-01-02 02:57:16 +00:00
|
|
|
#
|
2012-04-13 23:30:38 +00:00
|
|
|
# $File: Makefile.am,v 1.78 2012/01/27 01:41:26 christos Exp $
|
2009-01-02 02:57:16 +00:00
|
|
|
#
|
|
|
|
MAGIC_FRAGMENT_BASE = Magdir
|
2011-10-06 06:01:12 +00:00
|
|
|
MAGIC_DIR = $(top_srcdir)/magic
|
|
|
|
MAGIC_FRAGMENT_DIR = $(MAGIC_DIR)/$(MAGIC_FRAGMENT_BASE)
|
2000-11-05 08:33:55 +00:00
|
|
|
|
2009-01-02 02:57:16 +00:00
|
|
|
pkgdata_DATA = magic.mgc
|
2000-11-05 08:33:55 +00:00
|
|
|
|
2011-10-06 06:01:12 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(MAGIC_DIR)/Header \
|
|
|
|
$(MAGIC_DIR)/Localstuff \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/acorn \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/adi \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/adventure \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/allegro \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/alliant \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/amanda \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/amigaos \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/animation \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/apl \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/apple \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/applix \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/archive \
|
2012-04-13 23:30:38 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/assembler \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/asterix \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/att3b \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/audio \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/basis \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/bflt \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/blcr \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/blender \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/blit \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/bout \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/bsdi \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/bsi \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/btsnoop \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/c-lang \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/c64 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/cad \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/cafebabe \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/cddb \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/chord \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/cisco \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/citrus \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/clarion \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/claris \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/clipper \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/commands \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/communications \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/compress \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/console \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/convex \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/cracklib \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ctags \
|
2012-04-13 23:30:38 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/cups \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/dact \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/database \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/diamond \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/diff \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/digital \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/dolby \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/dump \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/dyadic \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/ebml \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/editors \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/efi \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/elf \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/encore \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/epoc \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/erlang \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/esri \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/fcs \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/filesystems \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/flash \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/fonts \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/fortran \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/frame \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/freebsd \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/fsav \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/fusecompress \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/games \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/gcc \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/geo \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/geos \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/gimp \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/gnome-keyring \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/gnu \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/gnumeric \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/grace \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/graphviz \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/gringotts \
|
2012-04-13 23:30:38 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/guile \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/hitachi-sh \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/hp \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/human68k \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ibm370 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ibm6000 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/iff \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/images \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/inform \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/intel \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/interleaf \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/island \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ispell \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/isz \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/java \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/jpeg \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/karma \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/kde \
|
2009-05-18 22:27:42 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/kml \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/lecter \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/lex \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/lif \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/linux \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/lisp \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/llvm \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/lua \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/luks \
|
2012-04-13 23:30:38 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/m4 \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/mach \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/macintosh \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/magic \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mail.news \
|
2012-04-13 23:30:38 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/make \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/maple \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/marc21 \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/mathcad \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mathematica \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/matroska \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mcrypt \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mercurial \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/metastore \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/mime \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mips \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mirage \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/misctools \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mkid \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mlssa \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mmdf \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/modem \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/motorola \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mozilla \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/msdos \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/msooxml \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/msvc \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/mup \
|
2012-04-13 23:30:38 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/music \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/natinst \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ncr \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/netbsd \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/netscape \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/netware \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/news \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/nitpicker \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/oasis \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/ocaml \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/octave \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ole2compounddocs \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/olf \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/os2 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/os400 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/os9 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/osf1 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/palm \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/parix \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/parrot \
|
2012-04-13 23:30:38 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/pascal \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/pbm \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/pdf \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/pdp \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/perl \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/pgp \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/pkgadd \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/plan9 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/plus5 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/printer \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/project \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/psdbms \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/pulsar \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/pyramid \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/python \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/revision \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/riff \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/rinex \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/rpm \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/rtf \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ruby \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sc \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sccs \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/scientific \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/securitycerts \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/selinux \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/sendmail \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sequent \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sgi \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sgml \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sharc \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sinclair \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/sisu \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/sketch \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/smalltalk \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/smile \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/sniffer \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/softquad \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/spec \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/spectrum \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sql \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/ssh \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ssl \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/sun \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/sysex \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/tcl \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/teapot \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/terminfo \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/tex \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/tgif \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/ti-8x \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/timezone \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/troff \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/tuxedo \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/typeset \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/unicode \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/unknown \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/uuencode \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/varied.out \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/varied.script \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/vax \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/vicar \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/virtual \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/virtutech \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/visx \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/vms \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/vmware \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/vorbis \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/vxl \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/warc \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/weak \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/windows \
|
2009-05-02 06:25:51 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/wireless \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/wordprocessors \
|
2011-10-06 06:01:12 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/wsdl \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/xdelta \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/xenix \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/xilinx \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/xo65 \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/xwindows \
|
2012-04-13 23:30:38 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/zfs \
|
2009-01-02 02:57:16 +00:00
|
|
|
$(MAGIC_FRAGMENT_DIR)/zilog \
|
|
|
|
$(MAGIC_FRAGMENT_DIR)/zyxel
|
2000-11-05 08:33:55 +00:00
|
|
|
|
2009-01-02 02:57:16 +00:00
|
|
|
MAGIC = magic.mgc
|
2011-10-06 06:01:12 +00:00
|
|
|
CLEANFILES = ${MAGIC} $(MAGIC_FRAGMENT_DIR)/Localstuff
|
2000-11-05 08:33:55 +00:00
|
|
|
|
2009-01-02 02:57:16 +00:00
|
|
|
# FIXME: Build file natively as well so that it can be used to compile
|
2011-10-06 06:01:12 +00:00
|
|
|
# the target's magic file; for now we bail if the local version does not match
|
2006-06-19 07:52:15 +00:00
|
|
|
if IS_CROSS_COMPILE
|
|
|
|
FILE_COMPILE = file
|
2009-01-02 02:57:16 +00:00
|
|
|
FILE_COMPILE_DEP =
|
2006-06-19 07:52:15 +00:00
|
|
|
else
|
|
|
|
FILE_COMPILE = $(top_builddir)/src/file
|
2009-01-02 02:57:16 +00:00
|
|
|
FILE_COMPILE_DEP = $(FILE_COMPILE)
|
2006-06-19 07:52:15 +00:00
|
|
|
endif
|
|
|
|
|
2009-01-02 02:57:16 +00:00
|
|
|
${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP)
|
2011-10-06 06:01:12 +00:00
|
|
|
@rm -fr magic
|
|
|
|
@mkdir magic && cp -p $(EXTRA_DIST) magic
|
|
|
|
@(if expr "${FILE_COMPILE}" : '.*/.*' > /dev/null; then \
|
|
|
|
echo "Using ${FILE_COMPILE} to generate ${MAGIC}" > /dev/null; \
|
|
|
|
else \
|
|
|
|
v=$$(file --version | sed -e s/file-// -e q); \
|
|
|
|
if [ "$$v" != "${PACKAGE_VERSION}" ]; then \
|
|
|
|
echo "Cannot use the installed version of file ($$v) to"; \
|
|
|
|
echo "cross-compile file ${PACKAGE_VERSION}"; \
|
|
|
|
echo "Please install file ${PACKAGE_VERSION} locally first"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
fi)
|
|
|
|
$(FILE_COMPILE) -C -m magic
|
|
|
|
@rm -fr magic
|