commit: cd71558e90e3c5640954e704f50d2d10362ac2ac
parent: 220365f77ba6f8aa36f21e2605b5e044989c1053
author: Chris Noxz <chris@noxz.tech>
date: Thu, 3 Jan 2019 14:33:26 +0100
Fix Makefile: echo suppression and remove unnecessary version injection
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
@@ -16,7 +16,7 @@ options:
.c.o:
@echo CC $<
- $(CC) $(STCFLAGS) -c $<
+ @$(CC) $(STCFLAGS) -c $<
${OBJ}: config.h config.mk
@@ -26,21 +26,21 @@ config.h:
ztatus: $(OBJ)
@echo CC -o $@
- $(CC) -o $@ $(OBJ) $(STLDFLAGS)
+ @$(CC) -o $@ $(OBJ) $(STLDFLAGS)
clean:
@echo cleaning
- rm -f ztatus $(OBJ)
+ @rm -f ztatus $(OBJ)
install: ztatus
@echo installing executable to ${PREFIX}/bin
- mkdir -p $(PREFIX)/bin
- cp -f ztatus $(PREFIX)/bin
- chmod 755 $(PREFIX)/bin/ztatus
+ @mkdir -p $(PREFIX)/bin
+ @cp -f ztatus $(PREFIX)/bin
+ @chmod 755 $(PREFIX)/bin/ztatus
@echo installing manual page to ${MANPREFIX}/man1
- mkdir -p ${MANPREFIX}/man1
- sed "s/VERSION/${VERSION}/g" < ztatus.1 > ${MANPREFIX}/man1/ztatus.1
- chmod 644 ${MANPREFIX}/man1/ztatus.1
+ @mkdir -p ${MANPREFIX}/man1
+ @cp -f ztatus.1 ${MANPREFIX}/man1
+ @chmod 644 ${MANPREFIX}/man1/ztatus.1
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin