-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 697 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 697 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
##
## EPITECH PROJECT, 2024
## B-PDG-300-MAR-3-1-PDGD02-vincent.montero-fontaine
## File description:
## Makefile
##
SRC = Main.hs
NAME = imageCompressor
OBJ = $(NAME).o $(NAME).hi
all: $(NAME)
$(NAME):
stack build
cp $(shell stack path --local-install-root)/bin/imageCompressor-exe imageCompressor
$(OBJ):
stack ghc -- -c ./app/$(SRC)
clean:
stack clean
rm -f $(NAME)
@find . -type f \( -name "*.hi" -o -name "*.o" \) -delete
fclean: clean
find . -type f \( -name "*~" -o \( -name "*#" -a -name "#*" \) \) -delete
find . -type f \( -name "*.hi" -o -name "*.o" \) -delete
rm -f coding-style-reports.log
style: fclean
lambdananas .
re: fclean all
.PHONY: clean fclean style re