From c120ca4e5a7a7912d1465ca528b68dcf3b76c625 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 23 Nov 2023 20:03:50 +0300 Subject: [PATCH] Edit Makefile to be more simpler --- Makefile | 10 +++------- main.c => mycfetch.c | 0 2 files changed, 3 insertions(+), 7 deletions(-) rename main.c => mycfetch.c (100%) diff --git a/Makefile b/Makefile index a264e71..f4cefdf 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,11 @@ -CC := cc -CFLAGS := +PREFIX ?= /usr/local all: mycfetch -mycfetch: main.c config.h - $(CC) main.c -o mycfetch $(CFLAGS) - install: mycfetch - cp mycfetch /usr/bin/mycfetch + install -m 644 mycfetch $(PREFIX)/bin/ clean: - rm mycfetch + rm -f mycfetch .PHONY: all install clean diff --git a/main.c b/mycfetch.c similarity index 100% rename from main.c rename to mycfetch.c