Skip to content

Commit b91dc8d

Browse files
committed
Add README.md
1 parent 231365f commit b91dc8d

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ run-%-1: src/%-1
1212
run-%-2: src/%-2
1313
./$< < in/$(@:run-%-2=%)
1414

15+
run-stdin-%: src/%
16+
./$<
17+
1518
clean:
1619
find src/ -type f ! -name "*.*" -delete
1720

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Buld and Run
2+
3+
`make run-x-y`
4+
5+
where x is the day and y is the part
6+
7+
## Build
8+
9+
`make src/x-y`
10+
11+
where x is the day and y is the part
12+
13+
## Build all
14+
15+
`make`
16+
17+
## Run With custom input
18+
19+
`make run-stdin-x-y < input_file`
20+
21+
where x is the day and y is the part
22+
23+
## Run Executable Directly
24+
25+
`src/x-y < input file`
26+
27+
this does not automatically rebuild when the code changes

0 commit comments

Comments
 (0)