From ba1fde2c65eb2b58512e70b0c5ade04a011a18db Mon Sep 17 00:00:00 2001 From: Ahurac Date: Thu, 14 Nov 2024 13:38:51 +0100 Subject: [PATCH] refactor: move sh files in subfolder --- Makefile | 6 ++++-- src/{ => sh}/command.c | 0 src/{ => sh}/command.h | 0 src/{ => sh}/main.c | 0 src/{ => sh}/parse.c | 0 src/{ => sh}/parse.h | 0 src/{ => sh}/reader.c | 0 src/{ => sh}/reader.h | 0 8 files changed, 4 insertions(+), 2 deletions(-) rename src/{ => sh}/command.c (100%) rename src/{ => sh}/command.h (100%) rename src/{ => sh}/main.c (100%) rename src/{ => sh}/parse.c (100%) rename src/{ => sh}/parse.h (100%) rename src/{ => sh}/reader.c (100%) rename src/{ => sh}/reader.h (100%) diff --git a/Makefile b/Makefile index 0b3871d..13e542e 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +CC := cc -g -Wall -Wextra -Werror -ansi + .PHONY: all all: out out/sh @@ -5,5 +7,5 @@ all: out out/sh out: mkdir -p -- $@ -out/sh: $(wildcard src/*.c) - cc -g -Wall -Wextra -Werror -ansi -o $@ $^ +out/sh: $(wildcard src/sh/*.c) + $(CC) -o $@ $^ diff --git a/src/command.c b/src/sh/command.c similarity index 100% rename from src/command.c rename to src/sh/command.c diff --git a/src/command.h b/src/sh/command.h similarity index 100% rename from src/command.h rename to src/sh/command.h diff --git a/src/main.c b/src/sh/main.c similarity index 100% rename from src/main.c rename to src/sh/main.c diff --git a/src/parse.c b/src/sh/parse.c similarity index 100% rename from src/parse.c rename to src/sh/parse.c diff --git a/src/parse.h b/src/sh/parse.h similarity index 100% rename from src/parse.h rename to src/sh/parse.h diff --git a/src/reader.c b/src/sh/reader.c similarity index 100% rename from src/reader.c rename to src/sh/reader.c diff --git a/src/reader.h b/src/sh/reader.h similarity index 100% rename from src/reader.h rename to src/sh/reader.h