Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-10 15:54:10 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-10 15:54:10 +0300
commitba5077a9e520e57b1ebb4cab07d43b87ae294572 (patch)
tree32badb61cb07b77ac52d8863b74553b2557bd058 /Makefile
parent21e190b93acfe1354cb42a3e93a4b6a0980269de (diff)
Adding Makefile to generate appstore zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..dd0461694
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,58 @@
+# Makefile for building the project
+
+app_name=mail
+project_dir=$(CURDIR)/../$(app_name)
+build_dir=$(CURDIR)/build/artifacts
+appstore_dir=$(build_dir)/appstore
+source_dir=$(build_dir)/source
+package_name=$(app_name)
+
+all: dist
+
+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 \
+ --exclude=$(project_dir)/vendor/bin \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/.gitattributes \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/Doxyfile \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/FOCUS \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/INSTALL* \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/NEWS \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/phpdoc.ini \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/README \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/TODO \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/VERSION \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/WHATSNEW \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/WYSIWYG \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/art \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/benchmarks \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/configdoc \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/docs \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/extras \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/maintenance \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/plugins \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/smoketests \
+ --exclude=$(project_dir)/vendor/ezyang/htmlpurifier/tests
+