improved makefile with make install
This commit is contained in:
parent
0771f0904a
commit
6cd264d467
@ -10,6 +10,14 @@ const char ICS_PATH[] = "tests/calendar.ics";
|
|||||||
make run
|
make run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### installation
|
||||||
|
|
||||||
|
```
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
#### TODO: improve Makefile
|
#### TODO: improve Makefile
|
||||||
|
7
makefile
7
makefile
@ -1,3 +1,6 @@
|
|||||||
|
a.out:
|
||||||
|
gcc -Wall ./src/*.c
|
||||||
|
|
||||||
.PHONY: debug
|
.PHONY: debug
|
||||||
debug:
|
debug:
|
||||||
gcc -Wall -g ./src/*.c
|
gcc -Wall -g ./src/*.c
|
||||||
@ -7,3 +10,7 @@ debug:
|
|||||||
run:
|
run:
|
||||||
gcc -Wall ./src/*.c
|
gcc -Wall ./src/*.c
|
||||||
./a.out
|
./a.out
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
install: a.out
|
||||||
|
cp a.out /usr/local/bin/ics_analyzer
|
||||||
|
Reference in New Issue
Block a user