aoc

Advent of Code Solutions
git clone git://git.alexkarle.com.com/aoc
Log | Files | Refs | README | LICENSE

commit 659cf726b146fcf8375c3629a4732bdd96182c4d (patch)
parent 5210648cb2884e0211bebbfdc780df590d425a0c
Author: Alex Karle <alex@alexkarle.com>
Date:   Thu,  2 Dec 2021 10:34:26 -0500

layout: Remove intermediate c/py directories

It was a bit annoying to traverse 3 levels just to get to the solutions!
There's no real need for the distinction right now either... (filetypes
say it all)

Diffstat:
R1/c/a.c -> 1/a.c | 0
R1/py/a.py -> 1/a.py | 0
R1/c/b.c -> 1/b.c | 0
R1/py/b.py -> 1/b.py | 0
R2/c/a.c -> 2/a.c | 0
R2/py/a.py -> 2/a.py | 0
R2/c/b.c -> 2/b.c | 0
R2/py/b.py -> 2/b.py | 0
MMakefile | 10+++-------
9 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/1/c/a.c b/1/a.c diff --git a/1/py/a.py b/1/a.py diff --git a/1/c/b.c b/1/b.c diff --git a/1/py/b.py b/1/b.py diff --git a/2/c/a.c b/2/a.c diff --git a/2/py/a.py b/2/a.py diff --git a/2/c/b.c b/2/b.c diff --git a/2/py/b.py b/2/b.py diff --git a/Makefile b/Makefile @@ -11,11 +11,7 @@ CFLAGS = -g -O2 -Wall -Wpedantic -Wextra DAY = * -TARGETS = \ - 1/c/a \ - 1/c/b \ - 2/c/a \ - 2/c/b \ +TARGETS = 1/a 1/b 2/a 2/b .PHONY: build build: $(TARGETS) @@ -23,8 +19,8 @@ build: $(TARGETS) .PHONY: run run: build @for d in $(DAY)/; do \ - for sol in $${d}py/a.py $${d}c/a $${d}py/b.py $${d}c/b; do \ - [ -e $$sol ] && printf "%-10s %s\n" "$$sol:" `$$sol < $$d/input`; \ + for sol in a.py a b.py b; do \ + [ -e $$d/$$sol ] && printf "%-7s %s\n" "$${d}$$sol:" `$$d/$$sol < $$d/input`; \ done; \ done