Makefile.am 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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
  6. MAGIC = @datadir@/magic
  7. CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"'
  8. man_MANS = file.1 magic.5 magic2mime.1
  9. file_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
  10. compress.c is_tar.c readelf.c internat.c print.c \
  11. file.h names.h patchlevel.h readelf.h tar.h
  12. EXTRA_DIST = LEGAL.NOTICE MAINT PORTING Makefile.std magic2mime \
  13. Localstuff Header $(magic_FRAGMENTS) file.man magic.man
  14. CLEANFILES = $(man_MANS) magic
  15. magic: Header $(magic_FRAGMENTS)
  16. cat $(srcdir)/Header > $@
  17. for frag in $(magic_FRAGMENTS); do \
  18. if test -f $(srcdir)/$$frag; then \
  19. f=$(srcdir)/$$frag; \
  20. else \
  21. f=$$frag; \
  22. fi; \
  23. cat $$f; \
  24. done >> $@
  25. file.1: Makefile file.man
  26. @rm -f $@
  27. sed -e s@__CSECTION__@1@g \
  28. -e s@__FSECTION__@5@g \
  29. -e s@__VERSION__@${VERSION}@g \
  30. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
  31. magic2mime.1: Makefile magic2mime.man
  32. @rm -f $@
  33. sed -e s@__CSECTION__@1@g \
  34. -e s@__FSECTION__@5@g \
  35. -e s@__VERSION__@${VERSION}@g \
  36. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic2mime.man > $@
  37. magic.5: Makefile magic.man
  38. @rm -f $@
  39. sed -e s@__CSECTION__@1@g \
  40. -e s@__FSECTION__@5@g \
  41. -e s@__VERSION__@${VERSION}@g \
  42. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
  43. magic_FRAGMENTS = Magdir/adventure Magdir/alliant Magdir/alpha Magdir/amanda \
  44. Magdir/amigaos Magdir/animation Magdir/apl Magdir/apple Magdir/applix \
  45. Magdir/archive Magdir/asterix Magdir/att3b Magdir/audio Magdir/blit \
  46. Magdir/bsdi Magdir/c-lang Magdir/chi Magdir/cisco Magdir/clipper \
  47. Magdir/commands Magdir/compress Magdir/convex Magdir/database \
  48. Magdir/diamond Magdir/diff Magdir/digital Magdir/dump Magdir/elf \
  49. Magdir/encore Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame \
  50. Magdir/freebsd Magdir/gimp Magdir/gnu Magdir/hp Magdir/ibm370 \
  51. Magdir/ibm6000 Magdir/iff Magdir/images Magdir/intel Magdir/interleaf \
  52. Magdir/island Magdir/ispell Magdir/java Magdir/karma Magdir/lecter \
  53. Magdir/lex Magdir/lif Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh \
  54. Magdir/magic Magdir/mail.news Magdir/mime Magdir/mirage Magdir/mkid \
  55. Magdir/mmdf Magdir/modem Magdir/motorola Magdir/msdos Magdir/ncr \
  56. Magdir/netbsd Magdir/news Magdir/octave Magdir/olf Magdir/os2 Magdir/os9 \
  57. Magdir/osf1 Magdir/pbm Magdir/pdf Magdir/pdp Magdir/pgp Magdir/pkgadd \
  58. Magdir/plus5 Magdir/printer Magdir/psdbms Magdir/pyramid Magdir/riff \
  59. Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs Magdir/sendmail Magdir/sequent \
  60. Magdir/sgi Magdir/sgml Magdir/sniffer Magdir/softquad Magdir/sun \
  61. Magdir/teapot Magdir/terminfo Magdir/tex Magdir/ti-8x Magdir/timezone \
  62. Magdir/troff Magdir/typeset Magdir/unknown Magdir/uuencode \
  63. Magdir/varied.out Magdir/vax Magdir/vicar Magdir/visx Magdir/vms \
  64. Magdir/wordperfect Magdir/xenix Magdir/zilog Magdir/zyxel \
  65. Magdir/communications Magdir/misctools Magdir/wordprocessors \
  66. Magdir/jpeg Magdir/grace Magdir/mcrypt Magdir/palm Magdir/spectrum