-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 754 Bytes
/
Makefile
File metadata and controls
47 lines (33 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##
## EPITECH PROJECT, 2022
## ImageCompressor
## File description:
## Makefile
##
CP = cp
SRC = app/Main.hs \
src/Lib.hs \
STDLIB_PATH = ./stdlib
STDLIB_INSTALL_PATH = $(shell $(STACK) path --local-bin)/../lib/ek
NAME = glados ekc ek
STACK = stack
all:
$(STACK) build
$(CP) "`$(STACK) path --local-install-root`/bin/"* .
clean:
$(RM) $(SRC:.hs=.hi)
$(RM) $(SRC:.hs=.o)
fclean: clean
$(RM) $(NAME)
$(RM) -r .stack-work
re: fclean all
tests_run:
$(STACK) test --coverage
$(STACK) hpc report --all --destdir test/coverage
functional_test: all
lit -v ./test/functional
install:
$(STACK) install
mkdir -p $(STDLIB_INSTALL_PATH)
$(CP) $(STDLIB_PATH)/*.ek $(STDLIB_INSTALL_PATH)
.PHONY: all clean fclean re tests_run install