2021-01-18 21:19:20 +01:00
|
|
|
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)
|
2021-01-18 23:49:35 +01:00
|
|
|
rm -rf ../lightfetch
|
2021-01-18 21:19:20 +01:00
|
|
|
@echo Uninstall completed!
|
|
|
|
@exit
|