improved makefile with make install

This commit is contained in:
bjoernf 2023-08-15 20:20:39 +02:00
parent 0771f0904a
commit 6cd264d467
2 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,14 @@ const char ICS_PATH[] = "tests/calendar.ics";
make run
```
#### installation
```
make
```
```
sudo make install
```
#### TODO: improve Makefile

View File

@ -1,3 +1,6 @@
a.out:
gcc -Wall ./src/*.c
.PHONY: debug
debug:
gcc -Wall -g ./src/*.c
@ -7,3 +10,7 @@ debug:
run:
gcc -Wall ./src/*.c
./a.out
.PHONY: install
install: a.out
cp a.out /usr/local/bin/ics_analyzer