[hackers] [tabbed] Fix install paths and default build flag || Quentin Rameau
commit 46887ac5505076f3a3907e3fd4a5e3ec00f29d63
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sat Jan 2 19:11:31 2016 +0100
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Sun Jan 3 09:24:32 2016 +0100
Fix install paths and default build flag
Ensure that paths are quoted.
Compile with -Os by default.
Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>
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 dd741e4..ad0dfb2 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
Received on Sun Jan 03 2016 - 09:25:12 CET
This archive was generated by hypermail 2.3.0
: Sun Jan 03 2016 - 09:36:10 CET