2021-01-19 14:56:11 +01:00
|
|
|
name = litefetch
|
2021-01-18 21:19:20 +01:00
|
|
|
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:
|
2021-01-19 14:56:11 +01:00
|
|
|
@echo Uninstalling $(name)...
|
2021-01-18 21:19:20 +01:00
|
|
|
sudo rm -f $(install_dir)$(name)
|
2021-01-19 14:56:11 +01:00
|
|
|
rm -rf ../$(name)
|
2021-01-18 21:19:20 +01:00
|
|
|
@echo Uninstall completed!
|
|
|
|
@exit
|