summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-28 19:19:12 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-28 19:19:12 +0200
commitbd2a7053eec0732fa6c40e3a6eac1899e76b44f7 (patch)
tree5f59b3feb53f46c1ce417ac83b87bcbb9623b7e9 /Makefile
parent030928f6e18c6b288b9de42643e0273c1d168b91 (diff)
Cleanup
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d8c4f33a..eda68688 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,14 @@
+# This file is licensed under the Affero General Public License version 3 or
+# later. See the COPYING file.
+
+app_name=$(notdir $(CURDIR))
+project_directory=$(CURDIR)/../$(app_name)
+build_tools_directory=$(CURDIR)/build/tools
+source_build_directory=$(CURDIR)/build/artifacts/source
+source_package_name=$(source_build_directory)/$(app_name)
+appstore_build_directory=$(CURDIR)/build/artifacts/appstore
+appstore_package_name=$(appstore_build_directory)/$(app_name)
+
all: dev-setup lint build-js-production test
# Dev env management
@@ -51,3 +62,17 @@ clean:
clean-dev:
rm -rf node_modules
+# Builds the source package for the app store, ignores php and js tests
+appstore:
+ rm -rf $(appstore_build_directory)
+ mkdir -p $(appstore_build_directory)
+ tar cvzf $(appstore_package_name).tar.gz \
+ --exclude-vcs \
+ $(project_directory)/appinfo \
+ $(project_directory)/css \
+ $(project_directory)/img \
+ $(project_directory)/l10n \
+ $(project_directory)/lib \
+ $(project_directory)/templates \
+ $(project_directory)/js \
+ $(project_directory)/COPYING