Make building samples more friendly
diff --git a/examples/.gitignore b/examples/.gitignore
index 4c34e4a..e40bfc2 100644
--- a/examples/.gitignore
+++ b/examples/.gitignore
@@ -1,2 +1,4 @@
general
showindex
+diff
+*.dSYM
diff --git a/examples/network/Makefile b/examples/network/Makefile
index ef3cec6..60969bd 100644
--- a/examples/network/Makefile
+++ b/examples/network/Makefile
@@ -14,3 +14,7 @@ OBJECTS = \
all: $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS)
+
+clean:
+ $(RM) $(OBJECTS)
+ $(RM) git2