-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 852 Bytes
/
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
38
39
40
default: build
# protofiles
cd build && cmake ..
build:
mkdir -p build
FILES := $(shell find . -maxdepth 2 -type f -name "*h" -o -name "*.cpp")
docs: $(FILES)
doxygen Doxyfile
clean:
rm -rf build *.pb
# protofiles:
# cd protobuf && ./build_proto_files
protoc: build/protobuf
sudo apt-get install autoconf automake libtool curl make g++ unzip
cd $< && ./autogen.sh && ./configure && make && sudo make install && sudo ldconfig
build/protobuf: build/protobuf.zip
unzip $^ -d build && mv build/*-master $@ && rm $<
build/protobuf.zip: build
wget https://github.com/google/protobuf/archive/master.zip -O $@
data: gtfs.zip
unzip -o $< -d $@
GTFS_URL=https://cdn01.at.govt.nz/data/gtfs.zip
gtfs.zip:
@echo Downloading latest GTFS data
@curl -S $(GTFS_URL) -o gtfs.zip
gtfsinfo:
@curl -I --head $(GTFS_URL) 2>&1 | grep Last-Modified