95b25f2de7
Ugly hack.
24 lines
729 B
Makefile
24 lines
729 B
Makefile
# Version number of loleaflet, no need to be in sync with the loolwsd one
|
|
|
|
VERSION=1.0.0
|
|
|
|
# Version number of the bundled 'draw' thing
|
|
DRAW_VERSION=0.2.4
|
|
|
|
all:
|
|
rm -rf dist plugins/draw-$(DRAW_VERSION)/dist
|
|
mkdir dist plugins/draw-$(DRAW_VERSION)/dist
|
|
jake build
|
|
cd plugins/draw-$(DRAW_VERSION) && jake build
|
|
|
|
.PHONY: dist
|
|
dist: all
|
|
rm -rf loleaflet-$(VERSION)
|
|
mkdir loleaflet-$(VERSION)
|
|
cp README loleaflet-$(VERSION)
|
|
tar cf - dist plugins/draw-$(DRAW_VERSION)/dist debug/document | (cd loleaflet-$(VERSION) && tar xf -)
|
|
tar cfz loleaflet-$(VERSION).tar.gz loleaflet-$(VERSION)
|
|
rm -rf loleaflet-$(VERSION)
|
|
|
|
loleaflet.spec: loleaflet.spec.in
|
|
sed -e 's/@PACKAGE_VERSION@/$(VERSION)/g' <loleaflet.spec.in >loleaflet.spec
|