From 20abb9af687fd7b7e8c3f71e0f4f28bc8ec028c1 Mon Sep 17 00:00:00 2001 From: sumuel Date: Tue, 15 Sep 2026 18:56:49 +0000 Subject: add verbose flag --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3b15937..6134562 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -#clear ; vim main.c ; gcc main.c -Wall -Wextra -Wpedantic -std=c99 -o collatz - PREFIX = /usr/local CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -O3 @@ -8,17 +6,19 @@ CC = cc SRC = main.c +TARGET = collatz + all: - ${CC} ${CFLAGS} ${SRC} -o collatz + ${CC} ${CFLAGS} ${SRC} -o ${TARGET} .PHONY: all clean dist install uninstall install: all - ${CC} ${CFLAGS} ${SRC} -o collats - cp -f collatz ${PREFIX}/bin - chmod 755 ${DESTDIR}${PREFIX}/bin/collatz + ${CC} ${CFLAGS} ${SRC} -o ${TARGET} + cp -f ${TARGET} ${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/${TARGET} uninstall: - rm -f ${PREFIX}/bin/collatz + rm -f ${PREFIX}/bin/${TARGET} -- cgit v1.2.3