From 5b0c5f18add6748106bdfd60b227d409ad9d806e Mon Sep 17 00:00:00 2001 From: kitoy Date: Fri, 10 Nov 2023 09:53:02 +0100 Subject: [PATCH] Actualiser Makefile --- Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 8ee93a9..097e0a8 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,12 @@ PROG_NAME=args_count -BASE=/usr/local +PREFIX=/usr/local -$(PROG_NAME): ./src/$(PROG_NAME).c - $(CC) $< -o $(PROG_NAME) - install: - install $(PROG_NAME) $(BASE)/bin/$(PROG_NAME) - -deinstall: - rm -fr $(BASE)/bin/$(PROG_NAME) + install $(PROG_NAME) $(PREFIX)/bin/$(PROG_NAME) clean: rm -fr $(PROG_NAME) -all: $(PROG_NAME) +all: + $(CC) ./src/$(PROG_NAME) -o $(PROG_NAME)