1 MAGIC = $(pkgdatadir)/magic
8 man_MANS = file.1 $(man_MAGIC) libmagic.3
10 EXTRA_DIST = file.man magic.man libmagic.man
11 CLEANFILES = $(man_MANS)
13 file.1: Makefile file.man
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 > $@
20 magic.${fsect}: Makefile magic.man
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 > $@
27 libmagic.3: Makefile libmagic.man
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 > $@