wendy

watch files or directory and run commands on any event
git clone git://z3bra.org/wendy
Log | Files | Refs | README | LICENSE

commit 44ee3d650cfbd4e583dfac2f978ceb82d031f6c2
parent 89f765ac51ddda0d47d2124b36de1de2fc793864
Author: z3bra <willy@mailoo.org>
Date:   Wed Feb 12 13:36:53 2014

Sanitize makefile

Diffstat:
 Makefile  | 21 +++++++--------------
 config.mk |  9 +++++++++
 2 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,16 +1,7 @@ -# BEGINNING OF THE FILE +include config.mk -# Compilation settings -CC=gcc -CFLAGS=-Wall -I inc --std=c99 -pedantic -LDFLAGS= - -# Command paths -RM=/bin/rm - -.SUFFIXE : -.SUFFIXES : .c .o .h -.PHONY : all list mrproper clean init +.SUFFIXES : .c .o +.PHONY : all list clean install uninstall .c.o: @echo -e "CC $<" @@ -20,16 +11,18 @@ wendy : wendy.o @echo -e "LD wendy" @${CC} $^ -o $@ ${LDFLAGS} -all : init wendy +all : wendy clean : ${RM} wendy ${RM} -f *.o ${RM} -f *~ +path: + @echo PREFIX: ${PREFIX} + install : install -D -m0755 wendy ${DESTDIR}${PREFIX}/bin/wendy uninstall: ${RM} ${DESTDIR}${PREFIX}/bin/wendy -## EOF diff --git a/config.mk b/config.mk @@ -0,0 +1,9 @@ +# paths +PREFIX = /usr +MANPREFIX = ${PREFIX}/man + +CC = cc +LD = ${CC} +RM = rm +CFLAGS = -Wall -I inc --std=c99 -pedantic +LDFLAGS =