summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2013-08-13 19:11:07 +0200
committerAnselm R Garbe <anselm@garbe.us>2013-08-13 19:11:07 +0200
commit1114a8345a83b776d12e7721af45342b7f2f5174 (patch)
treee953c61035b10e109974960856165467ea723414 /Makefile
parent60de8fe08b6f7f589e40a457526572c7b8d81f06 (diff)
downloadwmname-master.tar.gz
wmname-master.zip
applied Martin Kopta's patch, thanksHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fc14296..33e4af0 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ clean:
dist: clean
@echo creating dist tarball
@mkdir -p wmname-${VERSION}
- @cp -R LICENSE Makefile README config.mk ${SRC} wmname-${VERSION}
+ @cp -R LICENSE Makefile README config.mk wmname.1 ${SRC} wmname-${VERSION}
@tar -cf wmname-${VERSION}.tar wmname-${VERSION}
@gzip wmname-${VERSION}.tar
@rm -rf wmname-${VERSION}
@@ -42,6 +42,10 @@ install: all
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f wmname ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/wmname
+ @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
+ @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+ @sed "s/VERSION/${VERSION}/g" < wmname.1 > ${DESTDIR}${MANPREFIX}/man1/wmname.1
+ @chmod 644 ${DESTDIR}${MANPREFIX}/man1/wmname.1
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin