wendy

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

commit e0d77986af818120da2174f5bb7a1e2688773592
parent 1cfef0a6de2446814e1947e5bc0e73ab744f2d6d
Author: z3bra <contactatz3bradotorg>
Date:   Thu, 20 Apr 2017 13:42:49 +0200

Use implicit rules in makefile

Diffstat:
MMakefile | 22+++++++++-------------
Mconfig.mk | 6+++---
2 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,19 +4,15 @@ include config.mk wendy: wendy.o -.c.o: - $(CC) -c $(CFLAGS) $< -o $@ +install: wendy wendy.1 + mkdir -p $(DESTDIR)$(PREFIX)/bin + mkdir -p $(DESTDIR)$(MANDIR)/man1 + cp wendy $(DESTDIR)$(PREFIX)/bin/wendy + cp wendy.1 $(DESTDIR)$(MANDIR)/man1/wendy.1 -.o: - $(LD) $(LDFLAGS) $< -o $@ +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/wendy + rm -f $(DESTDIR)$(MANDIR)/man1/wendy.1 -clean : +clean: rm -f wendy *.o - -install : - install -D -m0755 wendy ${DESTDIR}${PREFIX}/bin/wendy - install -D -m0644 wendy.1 ${DESTDIR}${MANDIR}/man1/wendy.1 - -uninstall: - rm -f ${DESTDIR}${PREFIX}/bin/wendy - rm -f ${DESTDIR}${MANDIR}/man1/wendy.1 diff --git a/config.mk b/config.mk @@ -1,7 +1,7 @@ CC = cc -LD = ${CC} -CFLAGS = -Wall -Wextra -pedantic +LD = $(CC) +CFLAGS = LDFLAGS = PREFIX = /usr/local -MANDIR = ${PREFIX}/man +MANDIR = $(PREFIX)/man