From f8d55461fd42af311d5f5e56a3a9d45ce9548df3 Mon Sep 17 00:00:00 2001 From: Shoaib Date: Wed, 25 Oct 2023 14:06:11 +0200 Subject: [PATCH] Converted SQL mail into multiple files. --- Makefile | 8 +++++--- sql/sql_files | 32 ++++++++++++++++---------------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 894bd54ed..3dedd7f80 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,9 @@ OBJS = src/backend/age.o \ EXTENSION = age #SQLS = $(sort ($(wildcard sql/*.sql))) -SQLS = $(shell cat sql/sql_files) +SQLS := $(shell cat sql/sql_files) +SQLS := $(addprefix sql/,$(SQLS)) +SQLS := $(addsuffix .sql,$(SQLS)) DATA_built = $(age_sql) @@ -137,8 +139,8 @@ src/backend/parser/cypher_gram.c: BISONFLAGS += --defines=src/include/parser/cyp src/backend/parser/cypher_parser.o: src/backend/parser/cypher_gram.c src/backend/parser/cypher_keywords.o: src/backend/parser/cypher_gram.c -age--1.4.0.sql: - @cat sql/$(SQLS) > $@ +$(age_sql): + @cat $(SQLS) > $@ src/backend/parser/ag_scanner.c: FLEX_NO_BACKUP=yes diff --git a/sql/sql_files b/sql/sql_files index ea165a556..737c57d2b 100644 --- a/sql/sql_files +++ b/sql/sql_files @@ -1,16 +1,16 @@ -01_age_main.sql -02_age_agtype.sql -11_agtype_comparison.sql -12_agtype_access.sql -13_agtype_operators.sql -14_agtype_exists.sql -15_agtype_gin.sql -16_agtype_graphid.sql -17_agtype_coercions.sql -18_agtype_string.sql -20_age_query.sql -41_age_scalar.sql -42_age_string.sql -43_age_trig.sql -44_age_aggregate.sql -45_agtype_typecast.sql +01_age_main +02_age_agtype +11_agtype_comparison +12_agtype_access +13_agtype_operators +14_agtype_exists +15_agtype_gin +16_agtype_graphid +17_agtype_coercions +18_agtype_string +20_age_query +41_age_scalar +42_age_string +43_age_trig +44_age_aggregate +45_agtype_typecast