update README and Makefile

This commit is contained in:
bePrivate
2023-10-28 20:06:19 +02:00
parent e58d02fb7d
commit 4ced393957
2 changed files with 9 additions and 5 deletions
+2 -4
View File
@@ -2,9 +2,7 @@ first:
gcc src/main.c -o main gcc src/main.c -o main
install: install:
echo "alias wordle='$(realpath build/main)'" >> ~/.bashrc echo "alias wordlec='$(realpath main)'" >> ~/.bashrc
echo "WORDLE_PATH='$(realpath build/main)'" >> ~/.bashrc
export WORDLE_PATH
source ~/.bashrc source ~/.bashrc
run: run:
./build/main ./main
+7 -1
View File
@@ -14,7 +14,13 @@ Proven working on Linux ONLY. Contributions welcome!
`cd wordlec` `cd wordlec`
3. Start the game 3. Start the game
`make && make run` `make && make run`
or
`./main` to be able to run with arguments
Optionally you can install it and it can be accessed from any place in the filesystem.
`make install`
Then you can just use `wordlec` (plus optional arguments) to launch the game.
# How to play # How to play