summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-10-26 11:29:01 +0100
committerHendrik Leppelsack <hendrik@leppelsack.de>2015-10-26 11:29:01 +0100
commit14804ae7b7d7a2d006b42189ad303241cde2550b (patch)
tree41740c2f9a49d9491f34a1db30261e9cb52608e1 /Makefile
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..68117bf5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,40 @@
+# Makefile for building the project
+
+app_name=contactsrework
+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)
+
+dist: clean
+ mkdir -p $(source_dir)
+ tar cvzf $(source_dir)/$(package_name).tar.gz $(project_dir) \
+ --exclude-vcs \
+ --exclude=$(project_dir)/build/artifacts \
+ --exclude=$(project_dir)/js/node_modules \
+ --exclude=$(project_dir)/js/coverage
+
+appstore_package: clean
+ mkdir -p $(appstore_dir)
+ tar cvzf $(appstore_dir)/$(package_name).tar.gz $(project_dir) \
+ --exclude-vcs \
+ --exclude=$(project_dir)/build \
+ --exclude=$(project_dir)/js/node_modules \
+ --exclude=$(project_dir)/js/.bowerrc \
+ --exclude=$(project_dir)/js/.jshintrc \
+ --exclude=$(project_dir)/js/Gruntfile.js \
+ --exclude=$(project_dir)/js/*.json \
+ --exclude=$(project_dir)/js/*.conf.js \
+ --exclude=$(project_dir)/js/*.log \
+ --exclude=$(project_dir)/js/README.md \
+ --exclude=$(project_dir)/js/.bowerrc \
+ --exclude=$(project_dir)/.travis.yml \
+ --exclude=$(project_dir)/phpunit*xml \
+ --exclude=$(project_dir)/Makefile \
+ --exclude=$(project_dir)/tests \ No newline at end of file