Makefile.am 826 B

1234567891011121314151617181920212223242526272829303132
  1. MAGIC = $(pkgdatadir)/magic
  2. if FSECT5
  3. man_MAGIC = magic.5
  4. else
  5. man_MAGIC = magic.4
  6. endif
  7. fsect = @fsect@
  8. man_MANS = file.1 $(man_MAGIC) libmagic.3
  9. EXTRA_DIST = file.man magic.man libmagic.man
  10. CLEANFILES = $(man_MANS)
  11. file.1: Makefile file.man
  12. @rm -f $@
  13. sed -e s@__CSECTION__@1@g \
  14. -e s@__FSECTION__@${fsect}@g \
  15. -e s@__VERSION__@${VERSION}@g \
  16. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
  17. magic.${fsect}: Makefile magic.man
  18. @rm -f $@
  19. sed -e s@__CSECTION__@1@g \
  20. -e s@__FSECTION__@${fsect}@g \
  21. -e s@__VERSION__@${VERSION}@g \
  22. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
  23. libmagic.3: Makefile libmagic.man
  24. @rm -f $@
  25. sed -e s@__CSECTION__@1@g \
  26. -e s@__FSECTION__@${fsect}@g \
  27. -e s@__VERSION__@${VERSION}@g \
  28. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/libmagic.man > $@