SHAREPREFIX = ${PREFIX}/share/${NAME}
LIBCMARK = $(shell pkg-config --silence-errors --libs libcmark-gfm > /dev/null; echo $$?)
-CHROMA = $(shell which chroma; echo $$?)
+CHROMA = $(shell which chroma > /dev/null; echo $$?)
LIBGIT_INC = -I/usr/local/include
LIBS = -L/usr/local/lib `pkg-config --libs libgit2`
COMPATSRC = \
src/reallocarray.c\
src/strlcat.c\
- src/strlcpy.c
+ src/strlcpy.c\
+ src/cp.c
BIN = \
stagit\
stagit-index
COMPATOBJ = \
src/reallocarray.o\
src/strlcat.o\
- src/strlcpy.o
+ src/strlcpy.o\
+ src/cp.o
OBJ = ${SRC:.c=.o} ${COMPATOBJ}