Ensure the sql/ dir exists before attempting to write there

See https://travis-ci.org/postgis/postgis/builds/73386848

git-svn-id: http://svn.osgeo.org/postgis/trunk@13859 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2015-07-30 14:36:20 +00:00
parent ad80f72f39
commit abc1824d8c

View file

@ -54,6 +54,7 @@ PERL=@PERL@
# Borrow the $libdir substitution from PGXS but customise by running the preprocessor
# and adding the version number
sql/%.sql: %.sql.in
mkdir -p sql
$(SQLPP) -I../libpgcommon $< | grep -v '^#' | \
$(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/${EXTENSION}-${MINORVERSION}'g" > $@