Skip to content

Commit

Permalink
add install and uninstall rules to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
araujo88 committed Jan 25, 2025
1 parent 8b854bd commit 766e5bd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ valgrind:
done
@echo "Valgrind check done. If anything was sus, it'll show up with a non-zero exit code. No cap."

# Install target
.PHONY: install
install:
install -d /usr/local/bin
install -m 755 $(TARGET) /usr/local/bin/
@echo "$(TARGET) installed successfully. You're goated with the sauce!"

# Uninstall target
.PHONY: uninstall
uninstall:
rm -f /usr/local/bin/$(TARGET)
@echo "$(TARGET) uninstalled successfully. Back to the grind."

# Check dependencies
.PHONY: check-deps
Expand Down Expand Up @@ -90,6 +102,8 @@ format:
help:
@echo "Available targets (rizzy edition):"
@echo " all : Build the main executable (default target). Sigma grindset activated."
@echo " install : Install the binary to /usr/local/bin. Certified W."
@echo " uninstall : Uninstall the binary from /usr/local/bin. Back to square one."
@echo " test : Run the test suite. Huggy Wuggy approves."
@echo " clean : Remove all generated files. Amogus sussy imposter mode."
@echo " check-deps : Verify all required bro apps are installed."
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ flex -o lang.lex.c lang.l
make
```

## Installation

```bash
sudo make install
```

## Uninstall

```bash
sudo make uninstall
```

## 💻 Usage

1. Create a Brainrot source file (e.g., `hello.brainrot`):
Expand Down

0 comments on commit 766e5bd

Please sign in to comment.