forked from magefree/mage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (21 loc) · 908 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-include .env
# The target directory is used for setting where the output zip files will end up
# You can override this with an environment variable, ex
# TARGET_DIR=my_custom_directory make deploy
# Alternatively, you can set this variable in the .env file
TARGET_DIR ?= deploy/
# Note that the proper install script is located under ./Utils/build-and-package.pl
# and that should be used instead. This script is purely for convenience.
# The perl script bundles the artifacts into a single zip
.PHONY: install
install:
# Building project
mvn clean install package -DskipTests
# Packaging Mage.Client to zip
cd Mage.Client && mvn assembly:assembly
# Packaging Mage.Server to zip
cd Mage.Server && mvn assembly:assembly
# Copying the files to the target directory
mkdir -p $(TARGET_DIR)
cp ./Mage.Server/target/mage-server.zip $(TARGET_DIR)
cp ./Mage.Client/target/mage-client.zip $(TARGET_DIR)