forked from tkrajina/leaflet-editable-polyline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (32 loc) · 972 Bytes
/
Makefile
File metadata and controls
33 lines (32 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
GIT_PORCELAIN_STATUS=$(shell git status --porcelain)
VERSION=$(shell head -1 VERSION)
build: clean
mkdir dist
yui-compressor src/leaflet-editable-polyline.js > "dist/leaflet-editable-polyline-$(VERSION).js"
clean:
rm -Rf dist
get-leaflet-dist:
# Will retrieve leaflet files if needed:
test -f examples/leaflet.css || wget http://leafletjs.com/dist/leaflet.css -O examples/leaflet.css
test -f examples/leaflet.js || wget http://leafletjs.com/dist/leaflet.js -O examples/leaflet.js
show-chromium: get-leaflet-dist
chromium-browser examples/index.html
show-firefox: get-leaflet-dist
firefox examples/index.html
github-pages: check-all-commited
git branch -D gh-pages
git checkout -b gh-pages
rm .gitignore
cp examples/* .
git add .
git commit -m "gh-pages"
git checkout master
git clean -f
git checkout -- .
check-all-commited:
if [ -n "$(GIT_PORCELAIN_STATUS)" ]; \
then \
echo 'YOU HAVE UNCOMMITED CHANGES'; \
git status; \
exit 1; \
fi