From 3743f91f3c78028755175d226e8e28602e8636ea Mon Sep 17 00:00:00 2001 From: dm1sh Date: Fri, 10 Jun 2022 07:23:00 +0300 Subject: [PATCH] Added linux installation --- Makefile | 6 +++++- README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 02747bd..e4e5268 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -# CXX = $(shell wx-config --cxx) CXX = clang++ PROGRAM = wxMahjong @@ -19,3 +18,8 @@ $(BDIR): clean: rm -f $(BDIR)/*.o $(PROGRAM) + +install: + mkdir -p ~/.wxMahjong/ + cp resources/* -r ~/.wxMahjong/ + cp build/wxMahjong /usr/local/bin/ diff --git a/README.md b/README.md index 39a8ead..d22c90e 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,30 @@

Mahjong (solitare) game, written with C++ and [wxWidgets](https://www.wxwidgets.org) + +## Installation instructions: + +Install clang, make and wxWidgets library. e.g: + +```bash +sudo pacman -S clang make wxgtk3 +``` + +Build project: + +```bash +make +``` + +Add wxWidgets libs to ld path: + +```bash +echo '/usr/local/lib' | tee -a /etc/ld.so.conf +ldconfig +``` + +Install app: + +```bash +make install +```