mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
dev: improved makefile for better build process (#13306)
Co-authored-by: Hugh Kaznowski <hugh@rapidrecast.io>
This commit is contained in:
parent
f8c5d04dc8
commit
4a960995f7
1 changed files with 18 additions and 9 deletions
27
Makefile
27
Makefile
|
|
@ -6,19 +6,28 @@
|
||||||
# Alternatively, you can set this variable in the .env file
|
# Alternatively, you can set this variable in the .env file
|
||||||
TARGET_DIR ?= deploy/
|
TARGET_DIR ?= deploy/
|
||||||
|
|
||||||
# Note that the proper install script is located under ./Utils/build-and-package.pl
|
.PHONY: clean
|
||||||
# and that should be used instead. This script is purely for convenience.
|
clean:
|
||||||
# The perl script bundles the artifacts into a single zip
|
mvn clean
|
||||||
.PHONY: install
|
|
||||||
install:
|
.PHONY: build
|
||||||
# Building project
|
build:
|
||||||
mvn clean install package -DskipTests
|
mvn install package -DskipTests
|
||||||
|
|
||||||
|
.PHONY: package
|
||||||
|
package:
|
||||||
# Packaging Mage.Client to zip
|
# Packaging Mage.Client to zip
|
||||||
cd Mage.Client && mvn assembly:assembly
|
cd Mage.Client && mvn assembly:single
|
||||||
# Packaging Mage.Server to zip
|
# Packaging Mage.Server to zip
|
||||||
cd Mage.Server && mvn assembly:assembly
|
cd Mage.Server && mvn assembly:single
|
||||||
# Copying the files to the target directory
|
# Copying the files to the target directory
|
||||||
mkdir -p $(TARGET_DIR)
|
mkdir -p $(TARGET_DIR)
|
||||||
cp ./Mage.Server/target/mage-server.zip $(TARGET_DIR)
|
cp ./Mage.Server/target/mage-server.zip $(TARGET_DIR)
|
||||||
cp ./Mage.Client/target/mage-client.zip $(TARGET_DIR)
|
cp ./Mage.Client/target/mage-client.zip $(TARGET_DIR)
|
||||||
|
|
||||||
|
# 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: clean build package
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue