diff options
author | Christos Zoulas <christos@zoulas.com> | 2001-06-10 01:55:12 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2001-06-10 01:55:12 +0000 |
commit | c6c0c1e862f62b6549a262c14275d2359c6d8587 (patch) | |
tree | a3f6b5ac8b2d7eb2c8df11b1234d9b689b6ef391 /Makefile.am | |
parent | 059b183ca8d495efd5f30da6a9e26dee9395f26e (diff) | |
download | file-git-c6c0c1e862f62b6549a262c14275d2359c6d8587.tar.gz |
Peter Breitenlohner <peb@mppmu.mpg.de>
Add -enable-fsect-man5
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 3c300974..b7d0d760 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,7 +8,13 @@ data_DATA = magic magic.mime magic.mgc MAGIC = @datadir@/magic CPPFLAGS = -DMAGIC='"$(MAGIC)"' -man_MANS = file.1 magic.4 +if FSECT5 +man_MAGIC = magic.5 +else +man_MAGIC = magic.4 +endif +fsect = @fsect@ +man_MANS = file.1 $(man_MAGIC) file_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \ compress.c is_tar.c readelf.c print.c \ @@ -33,17 +39,20 @@ magic: Header Localstuff $(magic_FRAGMENTS) magic.mgc: magic file ./file -C -m magic +magic.mgc: magic file + ./file -C -m ./magic + file.1: Makefile file.man @rm -f $@ sed -e s@__CSECTION__@1@g \ - -e s@__FSECTION__@4@g \ + -e s@__FSECTION__@${fsect}@g \ -e s@__VERSION__@${VERSION}@g \ -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@ -magic.4: Makefile magic.man +magic.${fsect}: Makefile magic.man @rm -f $@ sed -e s@__CSECTION__@1@g \ - -e s@__FSECTION__@4@g \ + -e s@__FSECTION__@${fsect}@g \ -e s@__VERSION__@${VERSION}@g \ -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@ |