X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/43776279fb7bb1103a52ee72af2b3497a1274995..86dbcb55f25219edc4f0aa93b209357e4cac0621:/db/functions/Makefile diff --git a/db/functions/Makefile b/db/functions/Makefile index 6a3fbc0b9..3fa4ae526 100644 --- a/db/functions/Makefile +++ b/db/functions/Makefile @@ -1,7 +1,8 @@ +BUNDLE ?= bundle PG_CONFIG ?= pg_config DESTDIR ?= . -QTDIR=$(shell bundle show quad_tile | tail -n 1)/ext/quad_tile +QTDIR=$(shell ${BUNDLE} show quad_tile | tail -n 1)/ext/quad_tile OS=$(shell uname -s) ifeq (${OS},Darwin) @@ -15,7 +16,7 @@ all: ${DESTDIR}/libpgosm.so clean: $(RM) ${DESTDIR}/*.so ${DESTDIR}/*.o -${DESTDIR}/libpgosm.so: ${DESTDIR}/quadtile.o ${DESTDIR}/maptile.o ${DESTDIR}/xid_to_int4.o +${DESTDIR}/libpgosm.so: ${DESTDIR}/quadtile.o ${DESTDIR}/xid_to_int4.o cc ${LDFLAGS} -o $@ $^ ${DESTDIR}/%.o: %.c