From 15f3253490703797822055fcceac1531736be781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 6 Jul 2015 13:05:12 +0200 Subject: [PATCH] Adding Makefile for easier packaging --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..cc0355e1 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +# Makefile for building the project + +app_name=contacts +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) + +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 \ +