Makefile.am 2.6 KB

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