2021-03-05 10:45:11 +01:00
|
|
|
NAME = owofetch
|
2021-02-25 21:47:00 +01:00
|
|
|
FILES = main.c
|
|
|
|
FLAGS = -O3 -Wall -Wextra
|
|
|
|
INSTALL_DIR = /usr/bin/
|
|
|
|
all: build install
|
2021-01-18 21:19:20 +01:00
|
|
|
|
2021-02-25 21:47:00 +01:00
|
|
|
build: main.c
|
|
|
|
gcc $(FLAGS) -o $(NAME) $(FILES)
|
2021-01-18 21:19:20 +01:00
|
|
|
|
|
|
|
install:
|
2021-02-25 21:47:00 +01:00
|
|
|
sudo cp $(NAME) $(INSTALL_DIR)$(NAME)
|