wendy

inotify based node watcher
git clone git://git.2f30.org/wendy
Log | Files | Refs | README | LICENSE

commit c94f1359dea6f5e56f9e1347678763e9d89b6a08
parent 8ef956bb297a809a41991b3cac517f8010483985
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  2 Jun 2020 13:20:56 +0200

Add mkfile for compilation with plan9 mk

Diffstat:
Mconfig.mk | 9++++++---
Amkfile | 21+++++++++++++++++++++
2 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/config.mk b/config.mk @@ -1,7 +1,10 @@ CC = cc -LD = $(CC) -CFLAGS = -LDFLAGS = +LD = ${CC} PREFIX = /usr/local MANPREFIX = ${PREFIX}/man + +CPPFLAGS = +CFLAGS = -Wall -Wextra -pedantic +LDFLAGS = +LIBS = diff --git a/mkfile b/mkfile @@ -0,0 +1,21 @@ +<config.mk + +wendy: wendy.o + ${LD} $prereq ${LDFLAGS} ${LIBS} -o $target + +wendy.o: wendy.c + ${CC} -c -o $target $prereq ${CPPFLAGS} ${CFLAGS} + +clean:V: + rm -f wendy *.o + +install:V: wendy wendy.1 + mkdir -p ${DESTDIR}${PREFIX}/bin + mkdir -p ${DESTDIR}${MANPREFIX}/man1 + cp wendy ${DESTDIR}${PREFIX}/bin/wendy + cp wendy.1 ${DESTDIR}${MANPREFIX}/man1/ + chmod 755 ${DESTDIR}${PREFIX}/bin/wendy + +uninstall:V: + rm ${DESTDIR}${PREFIX}/bin/wendy + rm ${DESTDIR}${MANPREFIX}/man1/wendy.1