wendy

wendy for debian packaging
git clone git://git.unixkoans.com/wendy.git
Log | Files | Refs | README | LICENSE

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

Cleanup makefile

Diffstat:
Makefile | 24+++++++++---------------
config.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