Fix make rule to clean all the automatically generated sql files

That should be done before create then new version file
This commit is contained in:
Mario de Frutos 2018-03-26 13:06:48 +02:00
parent 95b052d430
commit a74e49a3e2

View File

@ -20,7 +20,7 @@ include $(PGXS)
SOURCES_DATA = $(wildcard sql/*.sql)
$(NEW_EXTENSION_ARTIFACT): $(SOURCES_DATA)
rm -f $(EXTENSION)--*.sql
find . -type f -regex '.*$(EXTENSION)--[0-9]\.[0-9]\.[0-9]\.sql' | xargs rm
cat $(SOURCES_DATA) >> $@
all: $(DATA)