diff options
author | elijah <elijah@riseup.net> | 2016-10-06 11:30:16 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-10-06 12:38:50 -0700 |
commit | d6a31a82344047d70395695f5d587b344d2eb631 (patch) | |
tree | ff59108df85a65efbe883c9bb30768fed083a10e /ui/Makefile | |
parent | 3603703ad0e3e5c6836a3eda032b19f3900c1129 (diff) |
[bug] fix problems building ui, closes #8516
Diffstat (limited to 'ui/Makefile')
-rw-r--r-- | ui/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ui/Makefile b/ui/Makefile index 96b632c5..182b0fa5 100644 --- a/ui/Makefile +++ b/ui/Makefile @@ -2,39 +2,38 @@ # builds for development mode # -dev-build: build-clean +dev-build: build-clean make-init npm install npm run build - touch pydist/leap/bitmask_js/__init__.py dev-install: dev-build pip install -e pydist -# # installs python package, but does not rebuild the js. # for usage when you don't want to install nodejs -# dev-install-prebuilt: pip install -e pydist - # # distribution builds # -dist-build: build-clean +dist-build: build-clean make-init npm install npm run build:production - touch pydist/leap/bitmask_js/__init__.py cd pydist && python setup.py bdist_wheel dist-install: dist-build pip install pydist/dist/*.whl # -# cleaning up +# clean up and set up # +make-init: + test -d pydist/leap/bitmask_js || mkdir -p pydist/leap/bitmask_js + touch pydist/leap/bitmask_js/__init__.py + build-clean: rm -rf pydist/leap/bitmask_js rm -rf pydist/dist |