Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CC=gcc
NAME=matrix-effect

ifdef OS
TERM=__WIN
else
TERM=__POSIX
endif

build: main.c
${CC} -D ${TERM} main.c -o ${NAME}

install: ${NAME}
cp ${NAME} /usr/local/bin/${NAME}

uninstall:
rm /usr/local/bin/${NAME}

.PHONY clean:
rm ${NAME}
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,35 @@ Also your terminal needs to support ANSI escape codes, no other dependencies.\
It even looks kinda nice though.

![](matrix.gif)

## Compile

There's a simple makefile that tries to autodetect your OS and build the application accordingly, so it should be enough to run make:
```
$ make
```

In case autodetection fails or you don't have make installed, you can always compile manually:
```
$ gcc -D __POSIX main.c -o matrix-effect
or
$ gcc -D __WIN main.c -o matrix-effect
```

## Install

If for whatever reason you'd like to be able to run this application from anywhere at all times, you can install it:
```
$ sudo make install
```
Afterwards you can run this command from anywhere
```
$ matrix-effect
```

## Uninstall

And if you want to get rid of it:
```
$ sudo make uninstall
```