Add Makefile

This commit is contained in:
germax26 2024-12-03 00:29:42 +11:00
parent 055c95b9e3
commit bc148ac3b7
Signed by: germax26
SSH Key Fingerprint: SHA256:N3w+8798IMWBt7SYH8G1C0iJlIa2HIIcRCXwILT5FvM
2 changed files with 15 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
input.txt
.DS_Store
*.hi
*.o
*/*/day[0-9][0-9]

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
HS_SRCS = $(shell find . -name 'day*.hs')
HS_TARGETS = $(HS_SRCS:.hs=)
all: $(HS_TARGETS)
%: %.hs
ghc $<
clean: $(HS_TARGETS)
rm -rf $(HS_TARGETS)
.PHONY: all clean