Fix #include path and json2geobuf path

This commit is contained in:
Eric Fischer 2017-08-30 15:40:55 -07:00
parent a5b1378d1a
commit 6384b6a49a
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ geobuf-test: geojson2nd $(addsuffix .checkbuf,$(TESTS))
# XXX Use proper makefile rules instead of a for loop
%.json.checkbuf:
for i in $(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json); do ./geojson2nd -w $$i | json2geobuf > $$i.geobuf; done
for i in $(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json); do ./geojson2nd -w $$i | ./node_modules/geobuf/bin/json2geobuf > $$i.geobuf; done
./tippecanoe -aD -f -o $@.mbtiles $(subst @,:,$(subst %,/,$(subst _, ,$(patsubst %.json.checkbuf,%,$(word 4,$(subst /, ,$@)))))) $(addsuffix .geobuf,$(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json)) < /dev/null
./tippecanoe-decode $@.mbtiles | sed 's/checkbuf/check/g' > $@.out
cmp $@.out $(patsubst %.checkbuf,%,$@)

View File

@ -5,7 +5,7 @@
#include <stdarg.h>
#include <unistd.h>
#include <string>
#include "jsonpull.h"
#include "jsonpull/jsonpull.h"
int fail = EXIT_SUCCESS;
bool wrap = false;