From 14526c3b8958a99372842bbac548b7fbba341d3c Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 23 Jan 2016 14:21:49 +0100 Subject: [PATCH] Some improvements: - some empty lines added to make it more readable - "run" target added to Makefile for easy launch from source - Updated INSTALL.md accordingly Signed-off-by: Roland Haeder --- INSTALL.md | 3 +++ packages/unmaintained/Makefile | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 823608fe..07468759 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -21,6 +21,9 @@ PyBitmessage can be run two ways: straight from source or via a package which is installed on your system. Since PyBitmessage is Beta, it is best to run PyBitmessage from source, so that you may update as needed. +Under Linux/Uni* just do "make run" and PyMessage will be started from source +code without changing to the right path by yourself. + ####Updating To update PyBitmessage from source (Linux/OS X), you can do these easy steps: ``` diff --git a/packages/unmaintained/Makefile b/packages/unmaintained/Makefile index fa1c4c91..900c8a90 100644 --- a/packages/unmaintained/Makefile +++ b/packages/unmaintained/Makefile @@ -11,6 +11,7 @@ debug: source: tar -cvf ../${APP}_${VERSION}.orig.tar ../${APPDIR} --exclude-vcs gzip -f9n ../${APP}_${VERSION}.orig.tar + install: mkdir -p ${DESTDIR}/usr mkdir -p ${DESTDIR}${PREFIX} @@ -43,6 +44,7 @@ install: echo ' exec python2 bitmessagemain.py' >> ${DESTDIR}${PREFIX}/bin/${APP} echo 'fi' >> ${DESTDIR}${PREFIX}/bin/${APP} chmod +x ${DESTDIR}${PREFIX}/bin/${APP} + uninstall: rm -f ${PREFIX}/share/man/man1/${APP}.1.gz rm -rf ${PREFIX}/share/${APP} @@ -50,6 +52,7 @@ uninstall: rm -f ${PREFIX}/share/applications/${APP}.desktop rm -f ${PREFIX}/share/icons/hicolor/scalable/apps/${APP}.svg rm -f ${PREFIX}/share/pixmaps/${APP}.svg + clean: rm -f ${APP} \#* \.#* gnuplot* *.png debian/*.substvars debian/*.log rm -fr deb.* debian/${APP} rpmpackage/${ARCH_TYPE} @@ -60,3 +63,7 @@ clean: sourcedeb: tar -cvf ../${APP}_${VERSION}.orig.tar ../${APPDIR} --exclude-vcs --exclude 'debian' gzip -f9n ../${APP}_${VERSION}.orig.tar + +run: + cd src/ + ./bitmessagemain.py