Makefile.am 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # don't enforce GNU packaging standards
  2. AUTOMAKE_OPTIONS = foreign no-dependencies
  3. bin_PROGRAMS = file
  4. bin_SCRIPTS = magic2mime
  5. data_DATA = magic magic.mime magic.mgc
  6. MAGIC = @datadir@/magic
  7. CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"'
  8. if FSECT5
  9. man_MAGIC = magic.5
  10. else
  11. man_MAGIC = magic.4
  12. endif
  13. fsect = @fsect@
  14. man_MANS = file.1 $(man_MAGIC) magic2mime.1
  15. file_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
  16. compress.c is_tar.c readelf.c print.c \
  17. file.h names.h patchlevel.h readelf.h tar.h
  18. EXTRA_DIST = LEGAL.NOTICE MAINT PORTING Makefile.std magic2mime \
  19. Localstuff Header $(magic_FRAGMENTS) file.man magic.man
  20. CLEANFILES = $(man_MANS) magic magic.mgc
  21. magic: Header $(magic_FRAGMENTS)
  22. cat $(srcdir)/Header > $@
  23. for frag in $(magic_FRAGMENTS); do \
  24. if test -f $(srcdir)/$$frag; then \
  25. f=$(srcdir)/$$frag; \
  26. else \
  27. f=$$frag; \
  28. fi; \
  29. cat $$f; \
  30. done >> $@
  31. magic.mgc: magic file
  32. ./file -C -m magic
  33. file.1: Makefile file.man
  34. @rm -f $@
  35. sed -e s@__CSECTION__@1@g \
  36. -e s@__FSECTION__@${fsect}@g \
  37. -e s@__VERSION__@${VERSION}@g \
  38. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
  39. magic2mime.1: Makefile magic2mime.man
  40. @rm -f $@
  41. sed -e s@__CSECTION__@1@g \
  42. -e s@__FSECTION__@${fsect}@g \
  43. -e s@__VERSION__@${VERSION}@g \
  44. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic2mime.man > $@
  45. magic.${fsect}: Makefile magic.man
  46. @rm -f $@
  47. sed -e s@__CSECTION__@1@g \
  48. -e s@__FSECTION__@${fsect}@g \
  49. -e s@__VERSION__@${VERSION}@g \
  50. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
  51. magic_FRAGMENTS = Magdir/adi Magdir/adventure Magdir/allegro Magdir/alliant \
  52. Magdir/alpha Magdir/amanda Magdir/amigaos Magdir/animation \
  53. Magdir/apl Magdir/apple Magdir/applix Magdir/archive Magdir/asterix \
  54. Magdir/att3b Magdir/audio Magdir/blender Magdir/blit Magdir/bsdi \
  55. Magdir/c-lang Magdir/chi Magdir/cisco Magdir/claris Magdir/clipper \
  56. Magdir/commands Magdir/compress Magdir/console Magdir/convex \
  57. Magdir/database Magdir/diamond Magdir/diff Magdir/digital \
  58. Magdir/dump Magdir/elf Magdir/encore Magdir/epoc Magdir/filesystems \
  59. Magdir/flash Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav \
  60. Magdir/gimp Magdir/gnu Magdir/grace Magdir/hp Magdir/ibm370 \
  61. Magdir/ibm6000 Magdir/iff Magdir/images Magdir/intel \
  62. Magdir/interleaf Magdir/island Magdir/ispell Magdir/java \
  63. Magdir/jpeg Magdir/karma Magdir/lecter Magdir/lex Magdir/lif \
  64. Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic \
  65. Magdir/mail.news Magdir/maple Magdir/mathematica Magdir/mcrypt \
  66. Magdir/mime Magdir/mips Magdir/mirage Magdir/mkid Magdir/mmdf Magdir/modem \
  67. Magdir/motorola Magdir/msdos Magdir/msvc Magdir/ncr Magdir/netbsd \
  68. Magdir/netscape Magdir/news Magdir/octave Magdir/olf Magdir/os2 \
  69. Magdir/os9 Magdir/osf1 Magdir/palm Magdir/pbm Magdir/pdf Magdir/pdp \
  70. Magdir/pgp Magdir/pkgadd Magdir/plus5 Magdir/printer Magdir/project \
  71. Magdir/psdbms Magdir/pyramid Magdir/python Magdir/riff Magdir/rpm \
  72. Magdir/rtf Magdir/sc Magdir/sccs Magdir/sendmail Magdir/sequent \
  73. Magdir/sgml Magdir/sketch Magdir/sniffer Magdir/softquad Magdir/spectrum \
  74. Magdir/sun Magdir/teapot Magdir/terminfo Magdir/tex Magdir/ti-8x \
  75. Magdir/timezone Magdir/troff Magdir/typeset Magdir/unknown \
  76. Magdir/uuencode Magdir/varied.out Magdir/vax Magdir/vicar Magdir/visx \
  77. Magdir/vms Magdir/vmware Magdir/wordperfect Magdir/xdelta Magdir/xenix \
  78. Magdir/zilog Magdir/zyxel \
  79. Magdir/communications Magdir/misctools Magdir/wordprocessors Magdir/x11 Magdir/kimwitu Magdir/vorbis