blob: 0d5001f57ea97c0121f906caf25c134628e47a15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
HS_SRC := $(wildcard *.hs)
HS_EXE := $(HS_SRC:.hs=)
OBJDIR := .obj
.PHONY: all clean
all: $(HS_EXE)
clean:
rm -rf $(HS_EXE) $(OBJDIR)
$(HS_EXE): %: %.hs | $(OBJDIR)
ghc -Wall -hidir $(OBJDIR) -odir $(OBJDIR) -o $@ $<
$(OBJDIR):
mkdir $(OBJDIR)
|