aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-08-26 18:08:08 -0400
committerDave Reisner <d@falconindy.com>2010-08-26 18:08:08 -0400
commitd8e9433920749fd1da2539cffccd89f0216b1475 (patch)
tree2e2ddb7c9a4fce8386aee57ccf1fea73b9092060
parent59009f60c270cd10e158ade495392b7bce89faba (diff)
downloadsquashfu-d8e9433920749fd1da2539cffccd89f0216b1475.tar.gz
Makefile: remove superfluous lines -- use install instead of mkdir/cp/chmod
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3506e52..d451952 100644
--- a/Makefile
+++ b/Makefile
@@ -5,14 +5,11 @@ doc: squashfu.1
install: all
@echo "installing squashfu to ${DESTDIR}/usr/bin"
- @mkdir -p ${DESTDIR}/usr/bin
+ @mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}${MANPREFIX}/man1
@sed "s/VER=.*/VER=${VERSION}/" < squashfu > ${DESTDIR}/usr/bin/squashfu
@chmod 755 ${DESTDIR}/usr/bin/squashfu
- @mkdir -p ${DESTDIR}/etc
- @cp squashfu.conf ${DESTDIR}/etc
- @chmod 644 ${DESTDIR}/etc/squashfu.conf
+ @install -Dm644 squashfu.conf "${DESTDIR}/etc/squashfu.conf"
@echo "installing man page to ${DESTDIR}${MANPREFIX}/man1"
- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
@sed "s/VERSION/${VERSION}/g" < squashfu.1 > ${DESTDIR}${MANPREFIX}/man1/squashfu.1
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/squashfu.1