tSanitize makefile - human - print numbers in human-readable format
(HTM) git clone git://z3bra.org/human
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3fe99268e0da351870041e087bf0f27dee218c4d
(DIR) parent 875338685d3d412069ae68583114a97e2b7d4c52
(HTM) Author: z3bra <willyatmailoodotorg>
Date: Fri, 23 Oct 2015 13:00:14 +0200
Sanitize makefile
Diffstat:
M Makefile | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -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
t@@ -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