fix confusing error message from 'got commit' upon uncommitable paths
[got-portable.git] / gitwrapper / Makefile.am
blobf618d4066f8e435b5879c332f44f975de1a997cf
1 bin_PROGRAMS = gitwrapper
3 include $(top_builddir)/Makefile.common
5 AM_CPPFLAGS += -I$(top_builddir)/gotd
6 AM_CPPFLAGS += -DGITWRAPPER_GIT_LIBEXEC_DIR='"@GITWRAPPER_LIBEXEC_PATHC@"'
8 CLEANFILES = parse.h
10 gitwrapper_SOURCES = gitwrapper.c \
11                   $(top_srcdir)/gotd/parse.y \
12                   $(top_srcdir)/lib/dial.c \
13                   $(top_srcdir)/lib/error.c \
14                   $(top_srcdir)/lib/hash.c \
15                   $(top_srcdir)/lib/log.c \
16                   $(top_srcdir)/lib/object_qid.c \
17                   $(top_srcdir)/lib/path.c \
18                   $(top_srcdir)/lib/reference_parse.c
20 gitwrapper_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
21 EXTRA_DIST = gitwrapper.1
23 man1_MANS = gitwrapper.1
25 LDADD = -L$(top_builddir)/compat -lopenbsd-compat
26 LDADD += $(libbsd_LIBS) \
27          $(libuuid_LIBS)
28 if HOST_FREEBSD
29 LDADD += -lmd
30 endif
32 AM_CPPFLAGS += $(libbsd_CFLAGS) $(libuuid_CFLAGS) $(libevent_CFLAGS)