loleaflet/Makefile |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

New commits:
commit 3761e5e9c2af0aefac3233f117dcf8fb531619f4
Author: Pranav Kant <pran...@collabora.co.uk>
Date:   Sun Aug 7 21:57:29 2016 +0530

    loleaflet: Debug mode bundle.js with source maps

diff --git a/loleaflet/Makefile b/loleaflet/Makefile
index 823fcd6..df0da8f 100644
--- a/loleaflet/Makefile
+++ b/loleaflet/Makefile
@@ -8,13 +8,26 @@ VERSION=1.9.0
 # Version number of the bundled 'draw' thing
 DRAW_VERSION=0.2.4
 
-all:
+DEBUG=false
+
+.PHONY: build
+build:
        npm install
        jake lint
        jake build
        rm -rf dist/plugins/draw-$(DRAW_VERSION) && mkdir -p 
dist/plugins/draw-$(DRAW_VERSION)
        cd plugins/draw-$(DRAW_VERSION) && jake build && cp -ar dist 
../../dist/plugins/draw-$(DRAW_VERSION)
-       npm run bundle
+       if $(DEBUG); then \
+               npm run bundle-debug; \
+       else \
+               npm run bundle; \
+       fi;
+
+all: build
+
+.PHONY: debug
+debug: DEBUG=true
+debug: build
 
 .PHONY: dist
 dist: all
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to