From 9200992976f93fe39174208d6829047bfcf0417a Mon Sep 17 00:00:00 2001 From: Alex Halderman Date: Tue, 20 Aug 2013 12:23:12 -0400 Subject: [PATCH] Remove Redis objects on make clean Resolves Issue #33. --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index c974eff..9baeba2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -34,10 +34,11 @@ LDFLAGS+=$(EXTRALDFLAGS) modules=module_tcp_synscan.o module_icmp_echo.o module_udp.o #ADD YOUR MODULE HERE objects=constraint.o blacklist.o cyclic.o logger.o send.o recv.o state.o monitor.o zopt_compat.o zmap.o random.o output_modules.o module_simple_file.o module_extended_file.o packet.o probe_modules.o ${modules} validate.o rijndael-alg-fst.o get_gateway.o aesrand.o +redis_objects=module_redis.o redis.o ifeq ($(REDIS), true) LDLIBS+=-lhiredis - objects+=module_redis.o redis.o + objects+=$(redis_objects) CFLAGS+=-DREDIS endif @@ -60,7 +61,7 @@ install: zmap @echo "\n**************\nSuccess! ZMap is installed. Try running (as root):\nzmap -p 80 -N 10 -B 1M -o -\n**************" clean: - -rm -f $(objects) $(TARGETS) + -rm -f $(objects) $(redis_objects) $(TARGETS) .PHONY: install clean