diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2015-09-11 12:48:54 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2015-09-11 12:48:54 +0300 |
commit | 352fcd4083c3446a1df68f38d58db389169581dd (patch) | |
tree | a3d3a8e665e947eadeebef320855bfd994f6198f /Makefile | |
parent | 1e1592ff5d483696982d508a862392251f628e31 (diff) |
fix makefile for packaging
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 24 insertions, 6 deletions
@@ -7,13 +7,20 @@ appstore_dir=$(build_dir)/appstore source_dir=$(build_dir)/source package_name=$(app_name) -all: dist +all: appstore clean: rm -rf $(build_dir) rm -rf node_modules + rm -rf js/vendor -dist: install-npm-deps install-bower-deps optimize-js +composer.phar: + curl -sS https://getcomposer.org/installer | php + +install-deps: install-composer-deps install-npm-deps install-bower-deps + +install-composer-deps: composer.phar + php composer.phar install install-npm-deps: package.json npm install --production @@ -21,7 +28,7 @@ install-npm-deps: package.json install-bower-deps: bower.json install-npm-deps ./node_modules/bower/bin/bower install -optimize-js: +optimize-js: install-deps ./node_modules/requirejs/bin/r.js -o build.js update-composer: @@ -29,18 +36,29 @@ update-composer: git rm -r vendor composer install --prefer-dist -appstore: clean +appstore: clean install-deps optimize-js 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)/node_modules \ + --exclude=$(project_dir)/.bowerrc \ + --exclude=$(project_dir)/.jscsrc \ --exclude=$(project_dir)/.jshintrc \ --exclude=$(project_dir)/.jshintignore \ --exclude=$(project_dir)/.travis.yml \ --exclude=$(project_dir)/.scrutinizer.yml \ + --exclude=$(project_dir)/build.js \ + --exclude=$(project_dir)/composer.json \ + --exclude=$(project_dir)/composer.lock \ + --exclude=$(project_dir)/composer.phar \ + --exclude=$(project_dir)/Gruntfile.js \ + --exclude=$(project_dir)/install_ubuntu.sh \ + --exclude=$(project_dir)/karma.conf.js \ + --exclude=$(project_dir)/package.json \ + --exclude=$(project_dir)/translation-extractor.php \ + --exclude=$(project_dir)/translations.js \ --exclude=$(project_dir)/phpunit*xml \ --exclude=$(project_dir)/Makefile \ --exclude=$(project_dir)/tests \ |