We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 798716a commit 7f89ee7Copy full SHA for 7f89ee7
2024/Day12/Makefile
@@ -0,0 +1,28 @@
1
+CONTAINER_NAME=haskell-aoc
2
+SRC=./Day12.hs
3
+TARGET=Day12
4
+all: $(TARGET)
5
+
6
+$(TARGET): $(SRC)
7
+ ghc -O3 $(SRC)
8
9
+profile: $(SRC)
10
11
12
+clean:
13
+ $(RM) ./Day12 ./Day12.o ./Day12.hi
14
15
+setup: $(SRC)
16
+ docker cp $(SRC) $(CONTAINER_NAME):/home/haskell/Main.hs
17
+ docker cp input.txt $(CONTAINER_NAME):/home/haskell/input.txt
18
+ docker cp shortinput.txt $(CONTAINER_NAME):/home/haskell/shortinput.txt
19
20
+profiling: setup
21
+ docker exec -it $(CONTAINER_NAME) cabal build --enable-profiling
22
+ docker exec -it $(CONTAINER_NAME) ./profile input.txt
23
24
+run: setup
25
+ docker exec -it $(CONTAINER_NAME) cabal build
26
+ docker exec -it $(CONTAINER_NAME) ./run input.txt
27
28
+.PHONY: all $(TARGET) clean setup profiling run
0 commit comments