-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 929 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 929 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
.DEFAULT_GOAL := help
package: ## Construire le livrable de l'application dans un fichier .zip
APP_NAME=$(APP_NAME) ./gradlew scriptsDistZip
install: .check-install-dir ## Installer l'application
unzip -q -d $(DEST_DIR) $(BUILD)/distributions/$(APP_NAME).zip
run-app: ## Lancer l'application localement
./gradlew run --args="--language French"
run-installed-app: .check-install-dir ## Lancer l'application installée
PATH=$(DEST_DIR)/$(APP_DIR)/bin:$(PATH) $(APP_NAME).sh --language French
clean: ## Nettoyer le répertoire de construction
rm --force --recursive $(BUILD)
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN {FS = ":.*?## "}; { printf("\033[36m%-30s\033[0m %s\n", $$1, $$2) }'
.check-install-dir:
ifndef DEST_DIR
$(error Please set the installation directory, for example DEST_DIR=~ make install)
endif
APP_NAME ?= QuickStart
APP_DIR := $(APP_NAME)
BUILD := build