diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f0ffa57 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: install setup + +setup: install + @python main.py install + +install: + @echo "Making 'main.py' executable..." + @chmod +x main.py + @echo "Installing packages from 'requirements.txt'..." + @pip install -r requirements.txt diff --git a/README.md b/README.md index e3cfb2b..4d94db9 100644 --- a/README.md +++ b/README.md @@ -24,22 +24,27 @@ - **Custom Aliases:** Generate and manage custom aliases for easy command invocation. + ## Installation ⚙️ -Clone the repository and make sure your `~/.local/bin` is in your system PATH: +Clone the repository and ensure your `~/.local/bin` is in your system PATH: ```bash git clone https://github.com/kevinveenbirkenbach/package-manager.git cd package-manager -chmod +x main.py ``` -Then install or update your commands: +Then, run the following command to set up the project: ```bash -./main.py install --all +make setup ``` +The `make setup` command will: +- Make `main.py` executable. +- Install required packages from `requirements.txt`. +- Execute `python main.py install` to complete the installation. + ## Usage 📖 Run the script with different commands. For example: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0209792 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +yaml \ No newline at end of file