This commit is contained in:
Victor Dubiniuk 2016-11-25 22:57:50 +03:00
Родитель 23c1c03a03
Коммит 8bba01785f
2 изменённых файлов: 30 добавлений и 28 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -1,3 +1,5 @@
/build
# just sane ignores
.*.sw[po]
*.bak

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

@ -2,36 +2,36 @@
app_name=files_antivirus
project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts
build_dir=$(CURDIR)/build
doc_files=README.md
src_files=admin.php
src_dirs=appinfo controller css img js l10n lib templates
all_src=$(src_files) $(src_dirs) $(doc_files)
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
package_name=$(app_name)
all: dist
.PHONY: all
all: dist appstore
appstore: dist
cd $(build_dir); tar cvzf $(app_name).tar.gz $(app_name)
rm -Rf $(appstore_dir); mkdir -p $(appstore_dir)
mv $(build_dir)/$(app_name).tar.gz $(appstore_dir)
$(build_dir)/$(app_name):
rm -Rf $@; mkdir -p $@
cp -R $(all_src) $@
.PHONY: dist
dist: $(build_dir)/$(app_name)
distclean:
rm -rf $(build_dir)
clean:
rm -rf $(build_dir)
update-composer:
rm -f composer.lock
git rm -r vendor
composer install --prefer-dist
appstore: clean
mkdir -p $(appstore_dir)
tar cvzf $(appstore_dir)/$(package_name).tar.gz $(project_dir) \
--exclude-vcs \
--exclude=$(project_dir)/build \
--exclude=$(project_dir)/build/artifacts \
--exclude=$(project_dir)/js/node_modules \
--exclude=$(project_dir)/js/.bowerrc \
--exclude=$(project_dir)/.jshintrc \
--exclude=$(project_dir)/.jshintignore \
--exclude=$(project_dir)/.travis.yml \
--exclude=$(project_dir)/.scrutinizer.yml \
--exclude=$(project_dir)/phpunit*xml \
--exclude=$(project_dir)/Makefile \
--exclude=$(project_dir)/tests \
--exclude=$(project_dir)/l10n/.tx \
--exclude=$(project_dir)/l10n/no-php \