-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
34 lines (23 loc) · 1.19 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
CWD = $(shell pwd)
POM = -f pom.xml
# Maven Clean Install Skip ; skip tests, javadoc, scaladoc, etc
MVN = mvn
MS = $(MVN) -DskipTests -Dmaven.javadoc.skip=true -Dskip
MCCS = $(MS) clean compile
MCIS = $(MS) clean install
# Source: https://stackoverflow.com/questions/4219255/how-do-you-get-the-list-of-targets-in-a-makefile
.PHONY: help
help: ## Show these help instructions
@sed -rn 's/^([a-zA-Z_-]+):.*?## (.*)$$/"\1" "\2"/p' < $(MAKEFILE_LIST) | xargs printf "make %-20s# %s\n"
mcis: ## mvn skip clean install (minimal build of all modules) - Passing args: make mcis ARGS="-X"
$(MCIS) $(POM) $(ARGS)
vaadin-production: ## Build facete-vaadin in production mode
$(MS) $(POM) $(ARGS) -Pproduction -pl :facete3-app-vaadin clean install
docker-deploy-web: ## Run mvn jib:build for the web app (run after vaadin-production)
$(MVN) -pl :facete3-pkg-app-docker-web jib:build
vaadin-docker-web: ## Build vaadin docker image
$(MVN) $(POM) -pl :facete3-pkg-app-docker-web jib:dockerBuild
run-vaadin-boot: ## Run with maven and spring boot
$(MVN) $(POM) -pl :facete3-app-vaadin spring-boot:run
run-vaadin-docker: ## Run the vaadin docker image
docker run -it -p8000:8000 --network host aklakan/facete3-web