Update Makefile
This commit is contained in:
parent
3234c7963b
commit
f298b13537
6
Makefile
6
Makefile
@ -1,12 +1,14 @@
|
|||||||
HS_SRCS = $(shell find . -name 'day*.hs')
|
HS_SRCS = $(shell find . -name 'day*.hs')
|
||||||
HS_TARGETS = $(HS_SRCS:.hs=)
|
HS_TARGETS = $(HS_SRCS:.hs=)
|
||||||
|
HI_TARGETS = $(HS_SRCS:.hs=.hi)
|
||||||
|
O_TARGETS = $(HS_SRCS:.hs=.o)
|
||||||
|
|
||||||
all: $(HS_TARGETS)
|
all: $(HS_TARGETS)
|
||||||
|
|
||||||
%: %.hs
|
%: %.hs
|
||||||
ghc $<
|
ghc $<
|
||||||
|
|
||||||
clean: $(HS_TARGETS)
|
clean:
|
||||||
rm -rf $(HS_TARGETS)
|
rm -rf $(HS_TARGETS) $(HI_TARGETS) $(O_TARGETS)
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
Loading…
Reference in New Issue
Block a user