uninstall makefile target
MODIFY
.gitignore
.gitignore
@@ -54,6 +54,7 @@ afl-showmap.8
afl-system-config.8
afl-tmin.8
afl-whatsup.8
+afl-persistent-config.8
afl-c++
afl-cc
afl-lto
@@ -87,3 +88,9 @@ utils/afl_network_proxy/afl-network-client
utils/afl_network_proxy/afl-network-server
utils/plot_ui/afl-plot-ui
*.o.tmp
+utils/afl_proxy/afl-proxy
+utils/optimin/build
+utils/optimin/optimin
+utils/persistent_mode/persistent_demo
+utils/persistent_mode/persistent_demo_new
+utils/persistent_mode/test-instr

MODIFY
GNUmakefile
GNUmakefile
@@ -353,6 +353,7 @@ help:
@echo "install: installs everything you have compiled with the build option above"
@echo "clean: cleans everything compiled (not downloads when on a checkout)"
@echo "deepclean: cleans everything including downloads"
+ @echo "uninstall: uninstall afl++ from the system"
@echo "code-format: format the code, do this before you commit and send a PR please!"
@echo "tests: this runs the test framework. It is more catered for the developers, but if you run into problems this helps pinpointing the problem"
@echo "unit: perform unit tests (based on cmocka and GNU linker)"
@@ -691,3 +692,16 @@ endif
install -m 644 docs/*.md $${DESTDIR}$(DOC_PATH)
cp -r testcases/ $${DESTDIR}$(MISC_PATH)
cp -r dictionaries/ $${DESTDIR}$(MISC_PATH)
+
+.PHONY: uninstall
+uninstall:
+ -cd $${DESTDIR}$(BIN_PATH) && rm -f $(PROGS) $(SH_PROGS) afl-qemu-trace afl-plot-ui afl-fuzz-document afl-network-server afl-g* afl-plot.sh afl-as afl-ld-lto afl-c* afl-lto*
+ -cd $${DESTDIR}$(HELPER_PATH) && rm -f afl-g*.*o afl-llvm-*.*o afl-compiler-*.*o libdislocator.so libtokencap.so libcompcov.so libqasan.so afl-frida-trace.so socketfuzz*.so argvfuzz*.so libAFLDriver.a libAFLQemuDriver.a as afl-as SanitizerCoverage*.so compare-transform-pass.so cmplog-*-pass.so split-*-pass.so dynamic_list.txt
+ -rm -rf $${DESTDIR}$(MISC_PATH)/testcases $${DESTDIR}$(MISC_PATH)/dictionaries
+ -sh -c "ls docs/*.md | sed 's|^docs/|$${DESTDIR}$(DOC_PATH)/|' | xargs rm -f"
+ -cd $${DESTDIR}$(MAN_PATH) && rm -f $(MANPAGES)
+ -rmdir $${DESTDIR}$(BIN_PATH) 2>/dev/null
+ -rmdir $${DESTDIR}$(HELPER_PATH) 2>/dev/null
+ -rmdir $${DESTDIR}$(MISC_PATH) 2>/dev/null
+ -rmdir $${DESTDIR}$(DOC_PATH) 2>/dev/null
+ -rmdir $${DESTDIR}$(MAN_PATH) 2>/dev/null

MODIFY
docs/Changelog.md
docs/Changelog.md
@@ -23,6 +23,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
- added xml, curl and exotic string functions to llvm dictionary features
- fix AFL_PRELOAD issues on MacOS
- removed utils/afl_frida because frida_mode/ is now so much better
+ - added uninstall target to makefile (todo: update new readme!)
### Version ++3.14c (release)

uninstall makefile target