diff --git a/apps/sam/c/examples/Makefile b/apps/sam/c/examples/Makefile
index a876e95394bcc84bc351ee36fd237ed450d99ed5..f1546f2ecb3ca77e6c53f2c71d4af388bff9db22 100644
--- a/apps/sam/c/examples/Makefile
+++ b/apps/sam/c/examples/Makefile
@@ -22,7 +22,7 @@ LIBS = -lsam
 
 all: warhammer-dgram
 
-warhammer-dgram:
+warhammer-dgram: warhammer-dgram.c
 	$(CC) $(CFLAGS) -o warhammer-dgram.o -c warhammer-dgram.c
 	$(CC) $(CFLAGS) -o warhammer-dgram warhammer-dgram.o $(LIBS)
 
diff --git a/apps/sam/c/examples/i2p-ping/Makefile b/apps/sam/c/examples/i2p-ping/Makefile
index 96f6a8cafb6e23e71a899ab7f3a7c81fcf95f06c..ff4be71a96e7971856d72a1fabe030641cef4e5d 100644
--- a/apps/sam/c/examples/i2p-ping/Makefile
+++ b/apps/sam/c/examples/i2p-ping/Makefile
@@ -7,6 +7,7 @@
 #
 
 CC = gcc
+INSTALL = install
 
 #
 # Flags
@@ -22,10 +23,13 @@ LIBS = -lsam
 
 all: i2p-ping
 
-i2p-ping:
+i2p-ping: i2p-ping.c
 	$(CC) $(CFLAGS) -o i2p-ping.o -c i2p-ping.c
 	$(CC) $(CFLAGS) -o i2p-ping i2p-ping.o $(LIBS)
 
+install: i2p-ping
+	$(INSTALL) i2p-ping $(HOME)/bin
+
 #
 # Cleanup rules
 #
diff --git a/apps/sam/c/examples/i2p-ping/i2p-ping.c b/apps/sam/c/examples/i2p-ping/i2p-ping.c
index 079cbca009e3f5fed793f724199db71c4fd971fc..1b60371d2d3ea4b203e0d192826f996052db584f 100644
--- a/apps/sam/c/examples/i2p-ping/i2p-ping.c
+++ b/apps/sam/c/examples/i2p-ping/i2p-ping.c
@@ -88,7 +88,7 @@ int main(int argc, char* argv[])
 				quiet = true;
 				break;
 			case 'v':  /* version */
-				puts("$Id: i2p-ping.c,v 1.1 2004/07/31 21:38:15 mpc Exp $");
+				puts("$Id: i2p-ping.c,v 1.2 2004/07/31 22:20:22 mpc Exp $");
 				puts("Copyright (c) 2004, Matthew P. Cashdollar <mpc@innographx.com>");
 				break;
 			case '?':
@@ -132,6 +132,7 @@ int main(int argc, char* argv[])
 
 		while (!gotdest)  /* just wait for the naming lookup to complete */
 			sam_read_buffer(session);
+		gotdest = false;
 
 		for (int i = 0; i < count; ++i) {
 			time_t start = time(0);