From a38070afdd98cc8582ef25437904633d4f7798e6 Mon Sep 17 00:00:00 2001 From: Parker Macdonald Date: Sat, 7 Dec 2024 17:46:46 -0700 Subject: [PATCH] move makefile to root, also files can't have spaces in them (lame) --- day 1/Makefile => Makefile | 4 ++-- {day 1 => day_1}/1.c | 0 {day 1 => day_1}/2.c | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename day 1/Makefile => Makefile (95%) rename {day 1 => day_1}/1.c (100%) rename {day 1 => day_1}/2.c (100%) diff --git a/day 1/Makefile b/Makefile similarity index 95% rename from day 1/Makefile rename to Makefile index 82c1ff0..a5f3b21 100644 --- a/day 1/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # select all cpp files, for future use -SRC := ${wildcard *.c} +SRC := ${shell find ./ -name "*.c"} BIN := $(SRC:.c=) # -pedantic means using gnu extentions will throw an error @@ -33,6 +33,6 @@ all: $(BIN) $(CC) $(CFLAGS) $(CFLAGS_ERRORS) $(LDFLAGS) -o $@ $^ clean: - $(DEL) $(TARGET) $(OBJ) + rm $(BIN) .PHONY: clean diff --git a/day 1/1.c b/day_1/1.c similarity index 100% rename from day 1/1.c rename to day_1/1.c diff --git a/day 1/2.c b/day_1/2.c similarity index 100% rename from day 1/2.c rename to day_1/2.c