2000-11-05 08:33:55 +00:00
|
|
|
# don't enforce GNU packaging standards
|
|
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies
|
|
|
|
|
|
|
|
bin_PROGRAMS = file
|
|
|
|
|
2002-09-16 05:54:26 +00:00
|
|
|
data_DATA = magic magic.mime magic.mgc magic.mime.mgc
|
2000-11-05 08:33:55 +00:00
|
|
|
|
|
|
|
MAGIC = @datadir@/magic
|
2001-07-30 03:09:46 +00:00
|
|
|
CPPFLAGS = -DMAGIC='"$(MAGIC)"'
|
2000-11-05 08:33:55 +00:00
|
|
|
|
2001-07-30 03:09:46 +00:00
|
|
|
if FSECT5
|
|
|
|
man_MAGIC = magic.5
|
|
|
|
else
|
|
|
|
man_MAGIC = magic.4
|
|
|
|
endif
|
|
|
|
fsect = @fsect@
|
|
|
|
man_MANS = file.1 $(man_MAGIC)
|
2000-11-05 08:33:55 +00:00
|
|
|
|
|
|
|
file_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
|
|
|
|
compress.c is_tar.c readelf.c print.c \
|
|
|
|
file.h names.h patchlevel.h readelf.h tar.h
|
|
|
|
|
|
|
|
EXTRA_DIST = LEGAL.NOTICE MAINT PORTING Makefile.std magic2mime \
|
|
|
|
Localstuff Header $(magic_FRAGMENTS) file.man magic.man
|
|
|
|
|
2002-09-16 05:54:26 +00:00
|
|
|
CLEANFILES = $(man_MANS) magic magic.mgc magic.mime.mgc
|
2000-11-05 08:33:55 +00:00
|
|
|
|
|
|
|
magic: Header Localstuff $(magic_FRAGMENTS)
|
|
|
|
cat $(srcdir)/Header $(srcdir)/Localstuff > $@
|
|
|
|
for frag in $(magic_FRAGMENTS); do \
|
|
|
|
if test -f $(srcdir)/$$frag; then \
|
|
|
|
f=$(srcdir)/$$frag; \
|
|
|
|
else \
|
|
|
|
f=$$frag; \
|
|
|
|
fi; \
|
|
|
|
cat $$f; \
|
|
|
|
done >> $@
|
|
|
|
|
2001-04-25 07:41:21 +00:00
|
|
|
magic.mgc: magic file
|
|
|
|
./file -C -m magic
|
|
|
|
|
2002-09-16 05:54:26 +00:00
|
|
|
magic.mime.mgc: magic.mime file
|
|
|
|
./file -C -m $(srcdir)/magic.mime
|
|
|
|
|
2000-11-05 08:33:55 +00:00
|
|
|
file.1: Makefile file.man
|
|
|
|
@rm -f $@
|
|
|
|
sed -e s@__CSECTION__@1@g \
|
2001-07-30 03:09:46 +00:00
|
|
|
-e s@__FSECTION__@${fsect}@g \
|
2000-11-05 08:33:55 +00:00
|
|
|
-e s@__VERSION__@${VERSION}@g \
|
|
|
|
-e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
|
|
|
|
|
2001-07-30 03:09:46 +00:00
|
|
|
magic.${fsect}: Makefile magic.man
|
2000-11-05 08:33:55 +00:00
|
|
|
@rm -f $@
|
|
|
|
sed -e s@__CSECTION__@1@g \
|
2001-07-30 03:09:46 +00:00
|
|
|
-e s@__FSECTION__@${fsect}@g \
|
2000-11-05 08:33:55 +00:00
|
|
|
-e s@__VERSION__@${VERSION}@g \
|
|
|
|
-e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
|
|
|
|
|
2002-09-16 05:54:26 +00:00
|
|
|
magic_FRAGMENTS = \
|
|
|
|
Magdir/acorn \
|
|
|
|
Magdir/adi \
|
|
|
|
Magdir/adventure \
|
|
|
|
Magdir/allegro \
|
|
|
|
Magdir/alliant \
|
|
|
|
Magdir/alpha \
|
|
|
|
Magdir/amanda \
|
|
|
|
Magdir/amigaos \
|
|
|
|
Magdir/animation \
|
|
|
|
Magdir/apl \
|
|
|
|
Magdir/apple \
|
|
|
|
Magdir/applix \
|
|
|
|
Magdir/archive \
|
|
|
|
Magdir/asterix \
|
|
|
|
Magdir/att3b \
|
|
|
|
Magdir/audio \
|
|
|
|
Magdir/blender \
|
|
|
|
Magdir/blit \
|
|
|
|
Magdir/bsdi \
|
|
|
|
Magdir/c-lang \
|
|
|
|
Magdir/cddb \
|
|
|
|
Magdir/chi \
|
|
|
|
Magdir/cisco \
|
|
|
|
Magdir/citrus \
|
|
|
|
Magdir/claris \
|
|
|
|
Magdir/clipper \
|
|
|
|
Magdir/commands \
|
|
|
|
Magdir/compress \
|
|
|
|
Magdir/console \
|
|
|
|
Magdir/convex \
|
|
|
|
Magdir/ctags \
|
|
|
|
Magdir/cvs \
|
|
|
|
Magdir/database \
|
|
|
|
Magdir/diamond \
|
|
|
|
Magdir/diff \
|
|
|
|
Magdir/digital \
|
|
|
|
Magdir/dolby \
|
|
|
|
Magdir/dump \
|
|
|
|
Magdir/dyadic \
|
|
|
|
Magdir/editors \
|
|
|
|
Magdir/elf \
|
|
|
|
Magdir/encore \
|
|
|
|
Magdir/epoc \
|
|
|
|
Magdir/filesystems \
|
|
|
|
Magdir/flash \
|
|
|
|
Magdir/fonts \
|
|
|
|
Magdir/frame \
|
|
|
|
Magdir/freebsd \
|
|
|
|
Magdir/fsav \
|
|
|
|
Magdir/gimp \
|
|
|
|
Magdir/gnu \
|
|
|
|
Magdir/grace \
|
|
|
|
Magdir/gringotts \
|
2003-02-28 05:19:36 +00:00
|
|
|
Magdir/hdf \
|
2002-09-16 05:54:26 +00:00
|
|
|
Magdir/hitachi-sh \
|
|
|
|
Magdir/hp \
|
|
|
|
Magdir/ibm370 \
|
|
|
|
Magdir/ibm6000 \
|
|
|
|
Magdir/iff \
|
|
|
|
Magdir/images \
|
|
|
|
Magdir/intel \
|
|
|
|
Magdir/interleaf \
|
|
|
|
Magdir/island \
|
|
|
|
Magdir/ispell \
|
|
|
|
Magdir/java \
|
|
|
|
Magdir/jpeg \
|
|
|
|
Magdir/karma \
|
|
|
|
Magdir/lecter \
|
|
|
|
Magdir/lex \
|
|
|
|
Magdir/lif \
|
|
|
|
Magdir/linux \
|
|
|
|
Magdir/lisp \
|
|
|
|
Magdir/mach \
|
|
|
|
Magdir/macintosh \
|
|
|
|
Magdir/magic \
|
|
|
|
Magdir/mail.news \
|
|
|
|
Magdir/maple \
|
|
|
|
Magdir/mathematica \
|
|
|
|
Magdir/mcrypt \
|
|
|
|
Magdir/mime \
|
|
|
|
Magdir/mips \
|
|
|
|
Magdir/mirage \
|
|
|
|
Magdir/mkid \
|
|
|
|
Magdir/mmdf \
|
|
|
|
Magdir/mlssa \
|
|
|
|
Magdir/modem \
|
|
|
|
Magdir/motorola \
|
|
|
|
Magdir/msdos \
|
|
|
|
Magdir/msvc \
|
|
|
|
Magdir/natinst \
|
|
|
|
Magdir/ncr \
|
|
|
|
Magdir/netbsd \
|
|
|
|
Magdir/netscape \
|
|
|
|
Magdir/news \
|
|
|
|
Magdir/nitpicker \
|
|
|
|
Magdir/octave \
|
|
|
|
Magdir/olf \
|
|
|
|
Magdir/os2 \
|
|
|
|
Magdir/os9 \
|
|
|
|
Magdir/osf1 \
|
|
|
|
Magdir/palm \
|
|
|
|
Magdir/parix \
|
|
|
|
Magdir/pbm \
|
|
|
|
Magdir/pdf \
|
|
|
|
Magdir/pdp \
|
|
|
|
Magdir/perl \
|
|
|
|
Magdir/pgp \
|
|
|
|
Magdir/pkgadd \
|
|
|
|
Magdir/plus5 \
|
|
|
|
Magdir/printer \
|
|
|
|
Magdir/project \
|
|
|
|
Magdir/psdbms \
|
|
|
|
Magdir/pulsar \
|
|
|
|
Magdir/pyramid \
|
|
|
|
Magdir/python \
|
|
|
|
Magdir/riff \
|
|
|
|
Magdir/rpm \
|
|
|
|
Magdir/rtf \
|
|
|
|
Magdir/sc \
|
|
|
|
Magdir/sccs \
|
|
|
|
Magdir/sendmail \
|
|
|
|
Magdir/sequent \
|
|
|
|
Magdir/sgml \
|
|
|
|
Magdir/sharc \
|
|
|
|
Magdir/sketch \
|
|
|
|
Magdir/smalltalk \
|
|
|
|
Magdir/sniffer \
|
|
|
|
Magdir/softquad \
|
|
|
|
Magdir/spectrum \
|
2003-02-28 05:19:36 +00:00
|
|
|
Magdir/sql \
|
2002-09-16 05:54:26 +00:00
|
|
|
Magdir/sun \
|
|
|
|
Magdir/sysex \
|
|
|
|
Magdir/teapot \
|
|
|
|
Magdir/terminfo \
|
|
|
|
Magdir/tex \
|
|
|
|
Magdir/tgif \
|
|
|
|
Magdir/ti-8x \
|
|
|
|
Magdir/timezone \
|
|
|
|
Magdir/troff \
|
|
|
|
Magdir/tuxedo \
|
|
|
|
Magdir/typeset \
|
|
|
|
Magdir/unknown \
|
|
|
|
Magdir/uuencode \
|
|
|
|
Magdir/varied.out \
|
|
|
|
Magdir/vax \
|
|
|
|
Magdir/vicar \
|
|
|
|
Magdir/visx \
|
|
|
|
Magdir/vms \
|
|
|
|
Magdir/vmware \
|
|
|
|
Magdir/vorbis \
|
|
|
|
Magdir/vxl \
|
|
|
|
Magdir/wordperfect \
|
|
|
|
Magdir/xdelta \
|
|
|
|
Magdir/xenix \
|
|
|
|
Magdir/zilog \
|
|
|
|
Magdir/zyxel
|