-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (34 loc) · 1.03 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
build: build_assets build_flats build_web
clean:
rm -rf ./flats/css
rm -rf ./flats/fonts
rm -rf ./flats/img
rm -rf ./flats/js
rm -rf ./release/*
rm -rf ./web/website/static/css
rm -rf ./web/website/static/fonts
rm -rf ./web/website/static/img
rm -rf ./web/website/static/js
install: install_npm_dependencies install_composer_dependencies
build_assets: install_npm_dependencies
node_modules/gulp/bin/gulp.js build
build_flats:
echo "Building flats artifact..."
tar czf ./release/pimcore-flats.tar.gz -C ./ ./flats
echo "Built flats artifact"
build_web: install_composer_dependencies
echo "Building web artifact..."
tar czf ./release/pimcore-web.tar.gz -C ./ \
./var/config/startup.php \
./migrations.yml \
./migrations-db.php \
./migrations \
./vendor \
./web
echo "Built web artifact"
install_composer_dependencies:
composer install
install_npm_dependencies:
npm install
.PHONY: build clean install build_assets build_flats build_web install_composer_dependencies install_npm_dependencies
.SILENT: