diff --git a/Makefile b/Makefile index 7ffa99f..8b68da2 100755 --- a/Makefile +++ b/Makefile @@ -2,9 +2,7 @@ first: gcc src/main.c -o main install: - echo "alias wordle='$(realpath build/main)'" >> ~/.bashrc - echo "WORDLE_PATH='$(realpath build/main)'" >> ~/.bashrc - export WORDLE_PATH + echo "alias wordlec='$(realpath main)'" >> ~/.bashrc source ~/.bashrc run: - ./build/main + ./main \ No newline at end of file diff --git a/README.md b/README.md index 9ce9e22..e5e3069 100755 --- a/README.md +++ b/README.md @@ -14,7 +14,13 @@ Proven working on Linux ONLY. Contributions welcome! `cd wordlec` 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