rework docs installation
MODIFY
gcc_plugin/Makefile
gcc_plugin/Makefile
#
PREFIX ?= /usr/local
-HELPER_PATH = $(PREFIX)/lib/afl
-BIN_PATH = $(PREFIX)/bin
+HELPER_PATH ?= $(PREFIX)/lib/afl
+BIN_PATH ?= $(PREFIX)/bin
+DOC_PATH ?= $(PREFIX)/share/doc/afl
+MAN_PATH ?= $(PREFIX)/man/man8
VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f2)
@@ -137,6 +139,12 @@ vpath % ..
@echo Apache License Version 2.0, January 2004 >> ../$@
ln -sf afl-gcc-fast.8 ../afl-g++-fast.8
+install: all
+ install -m 755 ../afl-gcc-fast $${DESTDIR}$(BIN_PATH)
+ install -m 755 ../afl-gcc-pass.so ../afl-gcc-rt.o $${DESTDIR}$(HELPER_PATH)
+ install -m 644 -T README.md $${DESTDIR}$(DOC_PATH)/README.gcc_plugin.md
+ install -m 644 -T README.whitelist.md $${DESTDIR}$(DOC_PATH)/README.gcc_plugin_whitelist.md
+
clean:
rm -f *.o *.so *~ a.out core core.[1-9][0-9]* test-instr .test-instr0 .test-instr1 .test2
rm -f $(PROGS) afl-common.o ../afl-g++-fast ../afl-g*-fast.8

MODIFY
libtokencap/Makefile
libtokencap/Makefile
PREFIX ?= /usr/local
HELPER_PATH = $(PREFIX)/lib/afl
+DOC_PATH ?= $(PREFIX)/share/doc/afl
+MAN_PATH ?= $(PREFIX)/man/man8
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2)
@@ -57,5 +59,5 @@ clean:
install: all
install -m 755 -d $${DESTDIR}$(HELPER_PATH)
install -m 755 ../libtokencap.so $${DESTDIR}$(HELPER_PATH)
- install -m 644 -T README.md $${DESTDIR}$(HELPER_PATH)/README.tokencap.md
+ install -m 644 -T README.md $${DESTDIR}$(DOC_PATH)/README.tokencap.md

MODIFY
qemu_mode/libcompcov/Makefile
qemu_mode/libcompcov/Makefile
PREFIX ?= /usr/local
HELPER_PATH = $(PREFIX)/lib/afl
+DOC_PATH ?= $(PREFIX)/share/doc/afl
+MAN_PATH ?= $(PREFIX)/man/man8
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2)
@@ -38,5 +40,5 @@ compcovtest: compcovtest.cc
install: all
install -m 755 ../../libcompcov.so $${DESTDIR}$(HELPER_PATH)
- install -m 644 -T README.md $${DESTDIR}$(HELPER_PATH)/README.compcov.md
+ install -m 644 -T README.md $${DESTDIR}$(DOC_PATH)/README.compcov.md

rework docs installation