Commit ec7e240ba4a3277a94def51005d2558d02cb8c3c

Ben Straub 2013-04-09T05:07:12

Add rev-list example to makefiles

diff --git a/CMakeLists.txt b/CMakeLists.txt
index dfca736..6bd25aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -388,4 +388,7 @@ IF (BUILD_EXAMPLES)
 
 	ADD_EXECUTABLE(git-showindex examples/showindex.c)
 	TARGET_LINK_LIBRARIES(git-showindex git2)
+
+	ADD_EXECUTABLE(git-rev-list examples/rev-list.c)
+	TARGET_LINK_LIBRARIES(git-rev-list git2)
 ENDIF ()
diff --git a/examples/Makefile b/examples/Makefile
index b306d48..2c18731 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -3,7 +3,7 @@
 CC = gcc
 CFLAGS = -g -I../include -I../src -Wall -Wextra -Wmissing-prototypes -Wno-missing-field-initializers
 LFLAGS = -L../build -lgit2 -lz
-APPS = general showindex diff
+APPS = general showindex diff rev-list
 
 all: $(APPS)