summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ffa54b7..c35893d 100644
--- a/Makefile
+++ b/Makefile
@@ -33,8 +33,12 @@ install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f cras ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/cras
+ mkdir -p ${DESTDIR}${MANPREFIX}/man1
+ sed "s/VERSION/${VERSION}/g" cras.1\
+ > ${DESTDIR}${MANPREFIX}/man1/cras.1
+ chmod 644 ${DESTDIR}${MANPREFIX}/man1/cras.1
uninstall:
- rm -f ${DESTDIR}${PREFIX}/bin/cras
+ rm -f ${DESTDIR}${PREFIX}/bin/cras ${DESTDIR}${MANPREFIX}/man1/cras.1
.PHONY: all options clean install uninstall