diff options
| author | sumuel <samuel@yakubos.org> | 2026-09-15 18:56:49 +0000 |
|---|---|---|
| committer | sumuel <samuel@yakubos.org> | 2026-09-15 18:56:49 +0000 |
| commit | 20abb9af687fd7b7e8c3f71e0f4f28bc8ec028c1 (patch) | |
| tree | f698d2b5f60024f3991978ac6d73eb70e4581031 /Makefile | |
| parent | f9f755712c2af5f7671a5838c1a8800666c2391c (diff) | |
add verbose flag
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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} |