diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-24 11:20:48 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-01-24 11:20:48 +0300 |
commit | 57a0387551d5599a8e753f200b24786683f555b1 (patch) | |
tree | 7d4ea02d215c6ca9dbca72d3f368253bab2daa55 /Makefile | |
parent | 7aefbc9da26c545840c1d5b4a5054418b54e9b68 (diff) |
Makefile
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..07bca3c --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ +app_name=notifications + +project_dir=$(CURDIR)/../$(app_name) +build_dir=$(CURDIR)/build +source_dir=$(build_dir)/$(app_name) +sign_dir=$(build_dir)/sign + +all: package + +dev-setup: clean npm-update build-js + +npm-update: + rm -rf node_modules + npm update + +build-js: + npm run build + +clean: + rm -rf $(build_dir) + +package: clean build-js + mkdir -p $(source_dir) + rsync -a \ + --exclude=/build \ + --exclude=/docs \ + --exclude=/js-src \ + --exclude=/l10n/.tx \ + --exclude=/tests \ + --exclude=/.git \ + --exclude=/.github \ + --exclude=/CONTRIBUTING.md \ + --exclude=/issue_template.md \ + --exclude=/README.md \ + --exclude=/.gitignore \ + --exclude=/.scrutinizer.yml \ + --exclude=/.travis.yml \ + --exclude=/.drone.yml \ + --exclude=/node_modules \ + --exclude=/npm-debug.log \ + --exclude=/package.json \ + --exclude=/Makefile \ + $(project_dir)/ $(source_dir) |