[hackers] [tabbed] Fix install paths and default build flag

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Sat, 2 Jan 2016 19:11:31 +0100

Ensure that paths are quoted.
Compile with -Os by default.
---
 Makefile  | 24 ++++++++++++------------
 config.mk |  2 +-
 2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/Makefile b/Makefile
index acc3246..1b95d15 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -44,22 +44,22 @@ dist: clean
 
 install: all
 	_AT_echo installing executable files to ${DESTDIR}${PREFIX}/bin
-	_AT_mkdir -p ${DESTDIR}${PREFIX}/bin
-	_AT_cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
-	_AT_chmod 755 ${DESTDIR}${PREFIX}/bin/tabbed
+	_AT_mkdir -p "${DESTDIR}${PREFIX}/bin"
+	_AT_cp -f ${BIN} "${DESTDIR}${PREFIX}/bin"
+	_AT_chmod 755 "${DESTDIR}${PREFIX}/bin/tabbed"
 	_AT_echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
-	_AT_mkdir -p ${DESTDIR}${MANPREFIX}/man1
-	_AT_sed "s/VERSION/${VERSION}/g" < tabbed.1 > ${DESTDIR}${MANPREFIX}/man1/tabbed.1
-	_AT_chmod 644 ${DESTDIR}${MANPREFIX}/man1/tabbed.1
-	_AT_sed "s/VERSION/${VERSION}/g" < xembed.1 > ${DESTDIR}${MANPREFIX}/man1/xembed.1
-	_AT_chmod 644 ${DESTDIR}${MANPREFIX}/man1/xembed.1
+	_AT_mkdir -p "${DESTDIR}${MANPREFIX}/man1"
+	_AT_sed "s/VERSION/${VERSION}/g" < tabbed.1 > "${DESTDIR}${MANPREFIX}/man1/tabbed.1"
+	_AT_chmod 644 "${DESTDIR}${MANPREFIX}/man1/tabbed.1"
+	_AT_sed "s/VERSION/${VERSION}/g" < xembed.1 > "${DESTDIR}${MANPREFIX}/man1/xembed.1"
+	_AT_chmod 644 "${DESTDIR}${MANPREFIX}/man1/xembed.1"
 
 uninstall:
 	_AT_echo removing executable files from ${DESTDIR}${PREFIX}/bin
-	_AT_rm -f ${DESTDIR}${PREFIX}/bin/tabbed
-	_AT_rm -f ${DESTDIR}${PREFIX}/bin/xembed
+	_AT_rm -f "${DESTDIR}${PREFIX}/bin/tabbed"
+	_AT_rm -f "${DESTDIR}${PREFIX}/bin/xembed"
 	_AT_echo removing manual pages from ${DESTDIR}${MANPREFIX}/man1
-	_AT_rm -f ${DESTDIR}${MANPREFIX}/man1/tabbed.1
-	_AT_rm -f ${DESTDIR}${MANPREFIX}/man1/xembed.1
+	_AT_rm -f "${DESTDIR}${MANPREFIX}/man1/tabbed.1"
+	_AT_rm -f "${DESTDIR}${MANPREFIX}/man1/xembed.1"
 
 .PHONY: all options clean dist install uninstall
diff --git a/config.mk b/config.mk
index edbb2a4..441b2de 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -13,7 +13,7 @@ LIBS = -L/usr/lib -lc -lX11
 
 # flags
 CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE
-CFLAGS = -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
 LDFLAGS = -s ${LIBS}
 
 # Solaris
-- 
2.6.4
Received on Sat Jan 02 2016 - 19:11:31 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 02 2016 - 19:12:14 CET