code_adventure/haskell/Makefile

20 lines
260 B
Makefile
Raw Normal View History

2024-03-12 21:37:20 +03:00
main = "Hello.hs"
build = "build"
elf = "$(build)/elf"
.PHONY: all
all: clean build run
.PHONY: clean
clean:
@rm -rf $(build)
.PHONY: build
build:
@mkdir $(build) &> /dev/null; \
ghc -outputdir $(build) -o $(elf) $(main)
.PHONY: run
run:
@./$(elf)