CFLAGS=$(shell pkg-config --cflags libebook-1.2) LDFLAGS=$(shell pkg-config --libs libebook-1.2) PRODUCTS=mutt-eds-query ifeq "${DEBUG}" "1" DEBUGOPT=-g endif all: ${PRODUCTS} clean: rm -f ${PRODUCTS} install: ${PRODUCTS} cp $< ${HOME}/bin mutt-eds-query: mutt-eds-query.c gcc -o $@ ${DEBUGOPT} ${CFLAGS} ${LDFLAGS} $<