-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (45 loc) · 1.59 KB
/
Makefile
File metadata and controls
61 lines (45 loc) · 1.59 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
LEAFLET_VERSION = 1.9.4
CONTAINERNAME=campmap-srv
all: lang markers other-icons/favicon.ico leaflet sidebar-v2/css/leaflet-sidebar.css fonts cbuild
lang markers:
$(MAKE) -C $@
.PHONY: all lang markers
leaflet-$(LEAFLET_VERSION).zip:
wget -O leaflet-$(LEAFLET_VERSION).zip http://cdn.leafletjs.com/leaflet/v$(LEAFLET_VERSION)/leaflet.zip
leaflet@$(LEAFLET_VERSION)/leaflet.css: leaflet-$(LEAFLET_VERSION).zip
mkdir -p leaflet@$(LEAFLET_VERSION)
unzip -d leaflet@$(LEAFLET_VERSION) $<
touch $@
leaflet: leaflet@$(LEAFLET_VERSION)/leaflet.css
ln -sf leaflet@$(LEAFLET_VERSION) leaflet
sidebar-v2/css/leaflet-sidebar.css:
git clone https://github.com/turbo87/sidebar-v2/
v4.7.0.zip:
wget https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.zip
font-awesome-4.7.0/css/font-awesome.min.css: v4.7.0.zip
unzip $<
mv Font-Awesome-4.7.0 font-awesome-4.7.0
touch $@
fonts: font-awesome-4.7.0/css/font-awesome.min.css
ln -s font-awesome-4.7.0/fonts fonts
other-icons/favicon.ico: other-icons/favicon.png
convert other-icons/favicon.png other-icons/favicon.ico
other-icons/favicon.png:
inkscape other-icons/favicon.svg --export-type=png -o other-icons/favicon.png 2>/dev/null
# build nodejs container
cimageid := $(shell podman images -q $(CONTAINERNAME))
cbuild: Containerfile
ifeq ($(cimageid),)
-podman rm -f $(CONTAINERNAME)
-podman rmi $(CONTAINERNAME)
podman build -t $(CONTAINERNAME) .
endif
clean:
rm -f other-icons/favicon.png other-icons/favicon.ico
rm -rf Font-Awesome*
rm -f fonts leaflet
make -C lang clean
make -C markers clean
podman rmi -f $(CONTAINERNAME)
mrproper:
rm *.zip