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