forked from akash-akya/vix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (56 loc) · 1.47 KB
/
Copy pathMakefile
File metadata and controls
70 lines (56 loc) · 1.47 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Silence directory change messages
MAKEFLAGS += --no-print-directory
# Default target
all: compile
# Main compilation target
compile:
ifdef ERTS_INCLUDE_DIR
@$(MAKE) -C c_src all
else
@mix compile
endif
# Mix compilation (called by elixir_make)
calling_from_make:
mix compile
# Clean targets
clean:
ifdef ERTS_INCLUDE_DIR
@$(MAKE) -C c_src clean
else
@mix clean
endif
clean_precompiled_libvips:
@$(MAKE) -C c_src clean_precompiled_libvips
deep_clean:
ifdef ERTS_INCLUDE_DIR
@$(MAKE) -C c_src clean_precompiled_libvips
else
@mix clean
@$(MAKE) -C c_src clean_precompiled_libvips
endif
# Development targets
test:
mix test
format:
mix format
lint:
mix credo
dialyxir:
mix dialyxir
dialyz: dialyxir
debug:
@$(MAKE) -C c_src debug
# Help target
help:
@echo "Available targets:"
@echo " all/compile - Build the project"
@echo " clean - Clean build artifacts"
@echo " clean_precompiled_libvips - Clean precompiled libvips"
@echo " deep_clean - Full clean including precompiled libs"
@echo " test - Run tests"
@echo " format - Format Elixir code"
@echo " lint - Run Credo linter"
@echo " dialyxir/dialyz - Run Dialyzer type checking"
@echo " debug - Show native build configuration"
@echo " help - Show this help"
.PHONY: all compile clean clean_precompiled_libvips deep_clean calling_from_make test format lint dialyxir dialyz debug help