# don't enforce GNU packaging standards AUTOMAKE_OPTIONS = foreign no-dependencies bin_PROGRAMS = file bin_SCRIPTS = magic2mime data_DATA = magic MAGIC = @datadir@/magic CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"' man_MANS = file.1 magic.5 magic2mime.1 file_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \ compress.c is_tar.c readelf.c internat.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 CLEANFILES = $(man_MANS) magic magic: Header $(magic_FRAGMENTS) cat $(srcdir)/Header > $@ for frag in $(magic_FRAGMENTS); do \ if test -f $(srcdir)/$$frag; then \ f=$(srcdir)/$$frag; \ else \ f=$$frag; \ fi; \ cat $$f; \ done >> $@ file.1: Makefile file.man @rm -f $@ sed -e s@__CSECTION__@1@g \ -e s@__FSECTION__@5@g \ -e s@__VERSION__@${VERSION}@g \ -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@ magic2mime.1: Makefile magic2mime.man @rm -f $@ sed -e s@__CSECTION__@1@g \ -e s@__FSECTION__@5@g \ -e s@__VERSION__@${VERSION}@g \ -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic2mime.man > $@ magic.5: Makefile magic.man @rm -f $@ sed -e s@__CSECTION__@1@g \ -e s@__FSECTION__@5@g \ -e s@__VERSION__@${VERSION}@g \ -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@ magic_FRAGMENTS = Magdir/adventure 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/blit \ Magdir/bsdi Magdir/c-lang Magdir/chi Magdir/cisco Magdir/clipper \ Magdir/commands Magdir/compress Magdir/convex Magdir/database \ Magdir/diamond Magdir/diff Magdir/digital Magdir/dump Magdir/elf \ Magdir/encore Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame \ Magdir/freebsd Magdir/gimp Magdir/gnu Magdir/hp Magdir/ibm370 \ Magdir/ibm6000 Magdir/iff Magdir/images Magdir/intel Magdir/interleaf \ Magdir/island Magdir/ispell Magdir/java Magdir/karma Magdir/lecter \ Magdir/lex Magdir/lif Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh \ Magdir/magic Magdir/mail.news Magdir/mime Magdir/mirage Magdir/mkid \ Magdir/mmdf Magdir/modem Magdir/motorola Magdir/msdos Magdir/ncr \ Magdir/netbsd Magdir/news Magdir/octave Magdir/olf Magdir/os2 Magdir/os9 \ Magdir/osf1 Magdir/pbm Magdir/pdf Magdir/pdp Magdir/pgp Magdir/pkgadd \ Magdir/plus5 Magdir/printer Magdir/psdbms Magdir/pyramid Magdir/riff \ Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs Magdir/sendmail Magdir/sequent \ Magdir/sgi Magdir/sgml Magdir/sniffer Magdir/softquad Magdir/sun \ Magdir/teapot Magdir/terminfo Magdir/tex Magdir/ti-8x Magdir/timezone \ Magdir/troff Magdir/typeset Magdir/unknown Magdir/uuencode \ Magdir/varied.out Magdir/vax Magdir/vicar Magdir/visx Magdir/vms \ Magdir/wordperfect Magdir/xenix Magdir/zilog Magdir/zyxel \ Magdir/communications Magdir/misctools Magdir/wordprocessors \ Magdir/jpeg Magdir/grace Magdir/mcrypt Magdir/palm Magdir/spectrum