File tree Expand file tree Collapse file tree 5 files changed +28
-18
lines changed
Expand file tree Collapse file tree 5 files changed +28
-18
lines changed Original file line number Diff line number Diff line change 1+ input :
2+ http " https://adventofcode.com/2024/day/1/input" " Cookie:session=${AOC_SESSION} ;" > input
3+
14main1 :
25 go build -o main1 main1.go
36
69
710.PHONY : run1 run2 clean
811
9- run1 : main1
12+ run1 : main1 input
1013 ./main1 < input
1114
12- run2 : main2
15+ run2 : main2 input
1316 ./main2 < input
1417
1518clean :
16- rm -f main1 main2
19+ rm -f main1 main2 input
Original file line number Diff line number Diff line change 1+ input :
2+ http " https://adventofcode.com/2024/day/2/input" " Cookie:session=${AOC_SESSION} ;" > input
3+
14main1 :
25 go build -o main1 main1.go common.go
36
69
710.PHONY : run1 run2 clean
811
9- run1 : main1
12+ run1 : main1 input
1013 ./main1 < input
1114
12- run2 : main2
15+ run2 : main2 input
1316 ./main2 < input
1417
1518clean :
16- rm -f main1 main2
17-
19+ rm -f main1 main2 input
Original file line number Diff line number Diff line change 1+ input :
2+ http " https://adventofcode.com/2024/day/3/input" " Cookie:session=${AOC_SESSION} ;" > input
3+
14main1 :
25 go build -o main1 main1.go
36
69
710.PHONY : run1 run2 clean
811
9- run1 : main1
12+ run1 : main1 input
1013 ./main1 < input
1114
12- run2 : main2
15+ run2 : main2 input
1316 ./main2 < input
1417
1518clean :
16- rm -f main1 main2
19+ rm -f main1 main2 input
Original file line number Diff line number Diff line change 1+ input :
2+ http " https://adventofcode.com/2024/day/4/input" " Cookie:session=${AOC_SESSION} ;" > input
3+
14main1 :
25 go build -o main1 main1.go common.go
36
69
710.PHONY : run1 run2 clean
811
9- run1 : main1
12+ run1 : main1 input
1013 ./main1 < input
1114
12- run2 : main2
15+ run2 : main2 input
1316 ./main2 < input
1417
1518clean :
16- rm -f main1 main2
17-
19+ rm -f main1 main2 input
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ if [ ! -f main1.go ]; then cp ../../go.template main1.go; fi
1111if [ ! -f main2.go ]; then cp ../../go.template main2.go; fi
1212
1313if [ ! -f Makefile ]; then cat > Makefile << EOF
14- download :
15- http "https://adventofcode.com/$YEAR /day/$DAY /input" "Cookie:session=$ AOC_SESSION ;" >input
14+ input :
15+ http "https://adventofcode.com/$YEAR /day/$DAY /input" "Cookie:session=\$ { AOC_SESSION} ;" >input
1616
1717main1:
1818 go build -o main1 main1.go
@@ -22,10 +22,10 @@ main2:
2222
2323.PHONY: run1 run2 clean
2424
25- run1: main1
25+ run1: main1 input
2626 ./main1 <input
2727
28- run2: main2
28+ run2: main2 input
2929 ./main2 <input
3030
3131clean:
You can’t perform that action at this time.
0 commit comments