Edit Makefile to be more simpler

windows
Nakidai 2023-11-23 20:03:50 +03:00
parent cb0f4619f4
commit c120ca4e5a
2 changed files with 3 additions and 7 deletions

View File

@ -1,15 +1,11 @@
CC := cc PREFIX ?= /usr/local
CFLAGS :=
all: mycfetch all: mycfetch
mycfetch: main.c config.h
$(CC) main.c -o mycfetch $(CFLAGS)
install: mycfetch install: mycfetch
cp mycfetch /usr/bin/mycfetch install -m 644 mycfetch $(PREFIX)/bin/
clean: clean:
rm mycfetch rm -f mycfetch
.PHONY: all install clean .PHONY: all install clean

View File