summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2016-01-02 19:11:31 +0100
committerChristoph Lohmann <20h@r-36.net>2016-01-03 09:24:32 +0100
commit46887ac5505076f3a3907e3fd4a5e3ec00f29d63 (patch)
tree07967b4b7b25c5f9de3bc772a29a796f66ba6c55 /Makefile
parentdf8261e89f7e98c822328d8f261c46fa55f3cf86 (diff)
Fix install paths and default build flag
Ensure that paths are quoted. Compile with -Os by default. Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index acc3246..1b95d15 100644
--- a/Makefile
+++ b/Makefile
@@ -44,22 +44,22 @@ dist: clean
install: all
@echo installing executable files to ${DESTDIR}${PREFIX}/bin
- @mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/tabbed
+ @mkdir -p "${DESTDIR}${PREFIX}/bin"
+ @cp -f ${BIN} "${DESTDIR}${PREFIX}/bin"
+ @chmod 755 "${DESTDIR}${PREFIX}/bin/tabbed"
@echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
- @sed "s/VERSION/${VERSION}/g" < tabbed.1 > ${DESTDIR}${MANPREFIX}/man1/tabbed.1
- @chmod 644 ${DESTDIR}${MANPREFIX}/man1/tabbed.1
- @sed "s/VERSION/${VERSION}/g" < xembed.1 > ${DESTDIR}${MANPREFIX}/man1/xembed.1
- @chmod 644 ${DESTDIR}${MANPREFIX}/man1/xembed.1
+ @mkdir -p "${DESTDIR}${MANPREFIX}/man1"
+ @sed "s/VERSION/${VERSION}/g" < tabbed.1 > "${DESTDIR}${MANPREFIX}/man1/tabbed.1"
+ @chmod 644 "${DESTDIR}${MANPREFIX}/man1/tabbed.1"
+ @sed "s/VERSION/${VERSION}/g" < xembed.1 > "${DESTDIR}${MANPREFIX}/man1/xembed.1"
+ @chmod 644 "${DESTDIR}${MANPREFIX}/man1/xembed.1"
uninstall:
@echo removing executable files from ${DESTDIR}${PREFIX}/bin
- @rm -f ${DESTDIR}${PREFIX}/bin/tabbed
- @rm -f ${DESTDIR}${PREFIX}/bin/xembed
+ @rm -f "${DESTDIR}${PREFIX}/bin/tabbed"
+ @rm -f "${DESTDIR}${PREFIX}/bin/xembed"
@echo removing manual pages from ${DESTDIR}${MANPREFIX}/man1
- @rm -f ${DESTDIR}${MANPREFIX}/man1/tabbed.1
- @rm -f ${DESTDIR}${MANPREFIX}/man1/xembed.1
+ @rm -f "${DESTDIR}${MANPREFIX}/man1/tabbed.1"
+ @rm -f "${DESTDIR}${MANPREFIX}/man1/xembed.1"
.PHONY: all options clean dist install uninstall