summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAriadna Vigo <arivigodr@gmail.com>2020-07-04 12:46:47 +0200
committerAriadna Vigo <arivigodr@gmail.com>2020-07-04 12:46:47 +0200
commit4ab5874117d1a663019d8dc7ed937cac2199fe09 (patch)
tree91a08f1e29a89844c93ad7081be4f6b6617f6444 /Makefile
parentb89dbe00ecc7a64e57a9293077edc7dbe734e2d7 (diff)
Added manpage
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