First commit.
This commit is contained in:
parent
86518e0564
commit
2b46da139c
3 changed files with 187 additions and 0 deletions
35
Makefile
Normal file
35
Makefile
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name = lightfetch
|
||||
files = main.c
|
||||
install_dir = /usr/bin/
|
||||
debug:
|
||||
@echo Building debug...
|
||||
gcc -Wall -Wextra -o $(name) $(files)
|
||||
@echo Build completed! Running...
|
||||
@echo
|
||||
./$(name)
|
||||
@echo
|
||||
@exit
|
||||
|
||||
clean:
|
||||
@echo Building debug...
|
||||
gcc -Wall -Wextra -o $(name) $(files)
|
||||
@echo Build completed! Running...
|
||||
@echo
|
||||
./$(name)
|
||||
@echo
|
||||
rm -f $(name)
|
||||
@echo Removed output file.
|
||||
@exit
|
||||
|
||||
install:
|
||||
@echo Building release...
|
||||
sudo gcc -o $(install_dir)$(name) $(files)
|
||||
@echo Building and installation completed!
|
||||
@exit
|
||||
|
||||
uninstall:
|
||||
@echo Uninstalling lightfetch...
|
||||
sudo rm -f $(install_dir)$(name)
|
||||
rm ../lightfetch
|
||||
@echo Uninstall completed!
|
||||
@exit
|
||||
Loading…
Add table
Add a link
Reference in a new issue