-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
37 lines (30 loc) · 1.05 KB
/
Makefile
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
WEBTARGET:=www
SCRIPTTARGET:=scripts
SRCTARGET:=src
all: clean map feed viewer generator
pre-build:
mkdir -p $(WEBTARGET)
mkdir -p $(SRCTARGET)
mkdir -p $(SCRIPTTARGET)
git clone -q https://github.com/freifunk/common.api.freifunk.net.git $(SRCTARGET)/common
cp -r $(SRCTARGET)/common/collector $(SCRIPTTARGET)/
mkdir -p $(WEBTARGET)/calendar
cp -r $(SRCTARGET)/common/ics-collector $(WEBTARGET)/calendar
map: pre-build
git clone -q https://github.com/freifunk/cmap.api.freifunk.net.git $(SRCTARGET)/map
mkdir -p $(WEBTARGET)/map
cp -r $(SRCTARGET)/map/* $(WEBTARGET)/map
feed: pre-build
git clone -q https://github.com/freifunk/feed.api.freifunk.net.git $(SRCTARGET)/feed
mkdir -p $(WEBTARGET)/feed
cp -r $(SRCTARGET)/feed/* $(WEBTARGET)/feed
viewer: pre-build
git clone -q https://github.com/freifunk/viewer.api.freifunk.net.git $(SRCTARGET)/viewer
mkdir -p $(WEBTARGET)/viewer
cp -r $(SRCTARGET)/viewer/* $(WEBTARGET)/viewer
generator: pre-build
cp -r generator $(WEBTARGET)
clean:
rm -rf $(WEBTARGET)
rm -rf $(SRCTARGET)
rm -rf $(SCRIPTTARGET)