diff options
author | van Hauser <vh@thc.org> | 2020-08-31 11:21:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 11:21:52 +0200 |
commit | 7ee255cbcf5a4bcf0e61b70024d9fa3259bc79e7 (patch) | |
tree | 5f25d67cbb28728e755438fedd0be3db5004d843 /GNUmakefile | |
parent | 961ddfd7f8ff9f40bd36e7552bf838e554904a0c (diff) | |
parent | b0b2a158915a70211042ce2962d70f9106d216eb (diff) | |
download | AFLplusplus-7ee255cbcf5a4bcf0e61b70024d9fa3259bc79e7.tar.gz |
Merge pull request #529 from rhertzog/manpages
Manual pages related changes
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile index 7cdf0d2e..610700be 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -24,7 +24,7 @@ BIN_PATH = $(PREFIX)/bin HELPER_PATH = $(PREFIX)/lib/afl DOC_PATH = $(PREFIX)/share/doc/afl MISC_PATH = $(PREFIX)/share/afl -MAN_PATH = $(PREFIX)/man/man8 +MAN_PATH = $(PREFIX)/share/man/man8 PROGNAME = afl VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f2) @@ -33,7 +33,7 @@ VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f PROGS = afl-gcc afl-fuzz afl-showmap afl-tmin afl-gotcpu afl-analyze SH_PROGS = afl-plot afl-cmin afl-cmin.bash afl-whatsup afl-system-config -MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8) afl-as.8 +MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8) afl-as.8 afl-g++.8 ASAN_OPTIONS=detect_leaks=0 ifeq "$(findstring android, $(shell $(CC) --version 2>/dev/null))" "" @@ -572,7 +572,8 @@ source-only: all %.8: % @echo .TH $* 8 $(BUILD_DATE) "afl++" > $@ @echo .SH NAME >> $@ - @echo .B $* >> $@ + @echo -n ".B $* \- " >> $@ + @./$* -h 2>&1 | head -n 1 | sed -e "s/$$(printf '\e')[^m]*m//g" >> $@ @echo >> $@ @echo .SH SYNOPSIS >> $@ @./$* -h 2>&1 | head -n 3 | tail -n 1 | sed 's/^\.\///' >> $@ |