wendy

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

commit 9a2882780b14d4b6118b2a34c2deaca37e3ee6a9
parent c5a2151645b501008a2b00beb46f35b403d63421
Author: z3bra <willyatmailoodotorg>
Date:   Sun, 31 Jan 2016 16:06:52 +0100

Cleanup makefile

Diffstat:
MMakefile | 24+++++++++---------------
Mconfig.mk | 10++++------
2 files changed, 13 insertions(+), 21 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,28 +1,22 @@ include config.mk -.SUFFIXES : .c .o -.PHONY : all list clean install uninstall +.PHONY: clean install uninstall -.c.o: - @echo -e "CC $<" - @${CC} -c $< -o $@ ${CFLAGS} +wendy: wendy.o -wendy : wendy.o - @echo -e "LD wendy" - @${CC} $^ -o $@ ${LDFLAGS} +.c.o: + $(CC) -c $(CFLAGS) $< -o $@ -all : wendy +.o: + $(LD) $(LDFLAGS) $< -o $@ clean : - ${RM} -f wendy *.o *~ - -path: - @echo PREFIX: ${PREFIX} + rm -f wendy *.o install : install -D -m0755 wendy ${DESTDIR}${PREFIX}/bin/wendy install -D -m0644 wendy.1 ${DESTDIR}${MANPREFIX}/man1/wendy.1 uninstall: - ${RM} ${DESTDIR}${PREFIX}/bin/wendy - ${RM} ${DESTDIR}${MANPREFIX}/man1/wendy.1 + rm -f ${DESTDIR}${PREFIX}/bin/wendy + rm -f ${DESTDIR}${MANPREFIX}/man1/wendy.1 diff --git a/config.mk b/config.mk @@ -1,9 +1,7 @@ -# paths -PREFIX = /usr -MANPREFIX = ${PREFIX}/man - CC = cc LD = ${CC} -RM = rm -CFLAGS = -Wall -I inc --std=c99 -pedantic +CFLAGS = -Wall -Wextra -pedantic LDFLAGS = + +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/man