neowofetch/Makefile
2021-01-18 23:49:35 +01:00

35 lines
No EOL
645 B
Makefile

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 -rf ../lightfetch
@echo Uninstall completed!
@exit