2013-08-30 19:20:07 +04:00
|
|
|
.PHONY: build all test clean
|
|
|
|
|
|
|
|
IMPOSM_BIN=../imposm3
|
|
|
|
|
|
|
|
all: build test
|
|
|
|
|
|
|
|
build:
|
|
|
|
cd ..; make build
|
|
|
|
|
2013-09-02 14:07:15 +04:00
|
|
|
$(IMPOSM_BIN): build
|
2013-08-30 19:20:07 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
build/test.pbf: test.osm
|
|
|
|
@mkdir -p build
|
|
|
|
osmosis --read-xml ./test.osm --write-pbf ./build/test.pbf omitmetadata=true
|
|
|
|
|
|
|
|
build/test.osc.gz: test.osc
|
|
|
|
@mkdir -p build
|
|
|
|
gzip --stdout ./test.osc > ./build/test.osc.gz
|
|
|
|
|
|
|
|
test: .lasttestrun
|
|
|
|
|
|
|
|
.lasttestrun: $(IMPOSM_BIN) imposm_system_test.py build/test.osc.gz build/test.pbf
|
2013-09-02 13:41:33 +04:00
|
|
|
nosetests imposm_system_test.py -v
|
|
|
|
@touch .lasttestrun
|