From d8f2c10b7108fff6b7e437291093a1cadc15ab9f Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sat, 6 May 2023 00:39:44 -0400 Subject: refactor --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d68e96a..07ffbf4 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ CC = gcc -SOURCE = src +SOURCE = src +SOURCE += lib +SOURCE += command MAJOR = 0 MINOR = 0 PATCH = 1 -INCFLAGS = $(shell echo $(SOURCE) | xargs printf -- '-I%s') +INCFLAGS = $(shell echo $(SOURCE) | xargs printf -- '-I%s ') CCFLAGS = -std=c89 -Wall -Wextra -pedantic -O2 CCFLAGS += -D_DEFAULT_SOURCE -DMAJOR=$(MAJOR) -DMINOR=$(MINOR) -DPATCH=$(PATCH) -DCHECK_LINK @@ -21,9 +23,9 @@ SRC = $(shell find $(SOURCE) -name "*.c") DIR = $(shell find $(SOURCE) -type d) OBJ = $(SRC:%.c=$(BIN)/%.o) -.PHONY: dirs run clean build install uninstall +.PHONY: empty dirs run clean build install uninstall -EOF: clean build +empty: clean build dirs: echo $(DIR) | xargs printf -- '$(BIN)/%s\n' | xargs mkdir -p -- cgit v1.2.3-freya