1#MAGIC = $(pkgdatadir)/magic 2if FSECT5 3#man_MAGIC = magic.5 4else 5#man_MAGIC = magic.4 6endif 7#fsect = @fsect@ 8#man_MANS = file.1 $(man_MAGIC) libmagic.3 9 10#EXTRA_DIST = file.man magic.man libmagic.man 11#CLEANFILES = $(man_MANS) 12 13#file.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 20#magic.${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 27#libmagic.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