Actualiser Makefile

This commit is contained in:
kitoy 2023-11-10 09:53:02 +01:00
parent ccf86009f1
commit 5b0c5f18ad
1 changed files with 4 additions and 9 deletions

View File

@ -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)