-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (38 loc) · 1.12 KB
/
Makefile
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
# Description: Makefile for Lyra project
# Author: Yuniel Acosta <https://twitter.com/yacosta738>
GRADLE = ./gradlew
# Colors
RED = \033[0;31m
GREEN = \033[0;32m
YELLOW = \033[0;33m
NC = \033[0m
# Targets and Dependencies
.PHONY: all clean build test
# Default target
all: build
# Build target
build:
@echo "${YELLOW}Building the project with Gradle...${NC}"
$(GRADLE) build
@echo "${GREEN}Build completed successfully.${NC}"
# Clean target
clean:
@echo "${YELLOW}Cleaning the project with Gradle...${NC}"
$(GRADLE) clean
@echo "${GREEN}Clean completed successfully.${NC}"
# Test target
test:
@echo "${YELLOW}Running tests with Gradle...${NC}"
$(GRADLE) test
@echo "${GREEN}Tests completed successfully.${NC}"
# Help target
help:
@echo "${YELLOW}Usage: make [target]${NC}"
@echo "${YELLOW}Targets:${NC}"
@echo " ${GREEN}all :${NC} Build the project"
@echo " ${GREEN}build :${NC} Build the project"
@echo " ${GREEN}clean :${NC} Clean the project"
@echo " ${GREEN}test :${NC} Run tests"
@echo " ${GREEN}help :${NC} Show this help message"
# If no target is specified, show help
.DEFAULT_GOAL := help