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