From ec7e240ba4a3277a94def51005d2558d02cb8c3c Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Tue, 9 Apr 2013 05:07:12 +0400 Subject: [PATCH] Add rev-list example to makefiles --- CMakeLists.txt | 3 +++ examples/Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfca73630..6bd25aacc 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 b306d4800..2c18731fd 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)