human

output numbers in human-readable formats
git clone git://z3bra.org/human
Log | Files | Refs | README | LICENSE

commit 3fe99268e0da351870041e087bf0f27dee218c4d
parent 875338685d3d412069ae68583114a97e2b7d4c52
Author: z3bra <willyatmailoodotorg>
Date:   Fri Oct 23 13:00:14 2015

Sanitize makefile

Diffstat:
 Makefile | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,11 +1,10 @@ -PREFIX:=/usr +PREFIX:=/usr/local MANPREFIX:=${PREFIX}/share/man CC = cc LD= ${CC} RM = rm -GZ = gzip -CFLAGS = -Wall -pedantic +CFLAGS = -Wall LDFLAGS = .SUFFIXES: .c .o .gz @@ -19,19 +18,15 @@ human: human.o @echo -e "LD human" @${LD} $^ -o $@ ${LDFLAGS} -human.1.gz: human.1 - @echo "GZ $<" - @${GZ} -c $< > $@ - -all : human human.1.gz +all : human human.1 clean : ${RM} -f human *.o *.gz *~ -install: human human.1.gz +install: human human.1 install -D -m 0755 human ${DESTDIR}${PREFIX}/bin/human - install -D -m 0644 human.1.gz ${DESTDIR}${MANPREFIX}/man1/human.1.gz + install -D -m 0644 human.1 ${DESTDIR}${MANPREFIX}/man1/human.1 uninstall: ${RM} ${DESTDIR}${PREFIX}/bin/human - ${RM} ${DESTDIR}${MANPREFIX}/man1/human.1.gz + ${RM} ${DESTDIR}${MANPREFIX}/man1/human.1