summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-15 04:46:32 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-15 04:46:32 +0200
commit1ab7ba56d852c6a2c082b92c004444b5fd88bc8c (patch)
tree3f9dcd48adf2a32180bdcbffe2bbd3aef2c8b3e5 /Makefile
parent04e421cf2f4f801d7e5e6b1fbdb8221855ad4613 (diff)
add makefile to build project
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..6d3604ce4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+# Makefile for building the project
+
+app_name=news
+project_dir=$(CURDIR)/../$(app_name)
+build_dir=$(CURDIR)/build/artifacts
+appstore_dir=$(build_dir)/appstore
+package_name=$(app_name)
+
+all: dist
+
+clean:
+ rm -rf $(build_dir)
+
+dist: appstore
+
+appstore: clean
+ mkdir -p $(appstore_dir)
+ tar cvzf $(appstore_dir)/$(package_name).tar.gz $(project_dir) \
+ --exclude-vcs --exclude=$(project_dir)/build/artifacts \
+ --exclude=$(project_dir)/js/node_modules