Add nearmap overlay
[bus.git] / maxious-canberra-transit-feed / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
default: cbrfeed.zip
 
cbrfeed.zip: cbrtable.yml createfeed.py
        ./createfeed.py --input=cbrtable.yml --output=cbrfeed.zip
 
ROUTE_FILES=900-intertown.yml 
 
cbrtable.yml: cbrtable.yml.in $(ROUTE_FILES) indent-route.pl
        cp cbrtable.yml.in cbrtable.yml
        @$(foreach ROUTE_FILE, $(ROUTE_FILES),  \
                echo "Parsing $(ROUTE_FILE)"; \
                echo "TODO: replace friendly timing spot names with OSM node IDs or geohash in $(ROUTE_FILE)"; \
                echo "TODO: add inbetween stops in $(ROUTE_FILE)"; \
                ./indent-route.pl < $(ROUTE_FILE) >> cbrtable.yml;)
 
cbrtable.yml.in: cbrtable.yml.in.in
        @echo "TODO: autogenerate stops via database, convert to YAML"
        cp cbrtable.yml.in.in cbrtable.yml.in
        
 
clean:
        rm -f cbrtable.yml cbrtable.yml.in cbrfeed.zip *~