Update the makefile to allow a non-dev installation from composer

Signed-off-by: Christian Wolf <github@christianwolf.email>

Remove webpack config from tarball

Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Christian Wolf 2020-12-11 15:48:12 +01:00
Родитель 0e829d1a59
Коммит bffcce701e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9FC3120E932F73F1
1 изменённых файлов: 25 добавлений и 4 удалений

Просмотреть файл

@ -65,15 +65,21 @@ ifneq (,$(wildcard $(CURDIR)/js/package.json))
make npm
endif
# Installs and updates the composer dependencies. If composer is not installed
# a copy is fetched from the web
.PHONY: composer
composer:
.PHONY: install_composer
install_composer:
ifeq (, $(composer))
@echo "No composer command available, downloading a copy from the web"
mkdir -p $(build_tools_directory)
curl -sS https://getcomposer.org/installer | php
mv composer.phar $(build_tools_directory)
endif
# Installs and updates the composer dependencies. If composer is not installed
# a copy is fetched from the web
.PHONY: composer
composer: install_composer
ifeq (, $(composer))
php $(build_tools_directory)/composer.phar install --prefer-dist
php $(build_tools_directory)/composer.phar update --prefer-dist
else
@ -81,6 +87,14 @@ else
composer update --prefer-dist
endif
.PHONY: composer_dist
composer_dist: install_composer
ifeq (, $(composer))
php $(build_tools_directory)/composer.phar install --prefer-dist --no-dev
else
composer install --prefer-dist --no-dev
endif
# Installs npm dependencies
.PHONY: npm
npm:
@ -132,6 +146,7 @@ appstore:
tar cvzf $(appstore_package_name).tar.gz \
--exclude-vcs \
--exclude="../$(app_name)/build" \
--exclude="../$(app_name)/documentation" \
--exclude="../$(app_name)/tests" \
--exclude="../$(app_name)/Makefile" \
--exclude="../$(app_name)/*.log" \
@ -145,11 +160,17 @@ appstore:
--exclude="../$(app_name)/js/bower.json" \
--exclude="../$(app_name)/js/karma.*" \
--exclude="../$(app_name)/js/protractor.*" \
--exclude="../$(app_name)/node_modules" \
--exclude="../$(app_name)/src" \
--exclude="../$(app_name)/translationfiles" \
--exclude="../$(app_name)/draft-release.sh" \
--exclude="../$(app_name)/package.json" \
--exclude="../$(app_name)/package-lock.json" \
--exclude="../$(app_name)/bower.json" \
--exclude="../$(app_name)/karma.*" \
--exclude="../$(app_name)/protractor\.*" \
--exclude="../$(app_name)/.*" \
--exclude="../$(app_name)/webpack.*.js" \
--exclude="../$(app_name)/js/.*" \
../$(app_name)