From c3ede99d15304078619415f6a5fb42e88402949b Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 16 Dec 2020 17:06:16 -0500 Subject: Add git-notemap wrapper --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1fd5a03..5475b97 100644 --- a/Makefile +++ b/Makefile @@ -6,22 +6,29 @@ LDLIBS = -ltls -include config.mk +BINS = notemap git-notemap + OBJS += getservinfo.o OBJS += imap.o OBJS += notemap.o +all: ${BINS} + notemap: ${OBJS} ${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@ ${OBJS}: imap.h clean: - rm -f notemap ${OBJS} + rm -f ${BINS} ${OBJS} -install: notemap notemap.1 +install: ${BINS} notemap.1 install -d ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANDIR}/man1 - install notemap ${DESTDIR}${PREFIX}/bin + install ${BINS} ${DESTDIR}${PREFIX}/bin install -m 644 notemap.1 ${DESTDIR}${MANDIR}/man1 + ln -fs notemap.1 ${DESTDIR}${MANDIR}/man1/git-notemap.1 uninstall: - rm -f ${DESTDIR}${PREFIX}/bin/notemap ${DESTDIR}${MANDIR}/man1/notemap.1 + rm -f ${BINS:%=${DESTDIR}${PREFIX}/bin/%} + rm -f ${DESTDIR}${MANDIR}/man1/notemap.1 + rm -f ${DESTDIR}${MANDIR}/man1/git-notemap.1 -- cgit 1.4.1