summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-26 11:02:53 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-26 11:02:53 +0200
commitc89c7eff4945dd56887530705841ef648427b35d (patch)
treea91e4496988213418647fed7815aca2830178341
parent83a2168001ad95a6cfe1ac44e59589c911898fde (diff)
downloadexchange-c89c7eff4945dd56887530705841ef648427b35d.tar.gz
exchange-c89c7eff4945dd56887530705841ef648427b35d.tar.bz2
exchange-c89c7eff4945dd56887530705841ef648427b35d.zip
add auditor-0002.sql build rule
-rw-r--r--src/auditordb/Makefile.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/auditordb/Makefile.am b/src/auditordb/Makefile.am
index abdba5c2b..dbbd4d1cc 100644
--- a/src/auditordb/Makefile.am
+++ b/src/auditordb/Makefile.am
@@ -19,9 +19,21 @@ sql_DATA = \
drop.sql \
restart.sql
+sqlinputs = \
+ 0002-*.sql \
+ auditor-0002.sql.in
+# auditor_do_*.sql
+# procedures.sql.in
+
+auditor-0002.sql: auditor-0002.sql.in 0002-*.sql
+ chmod +w $@ || true
+ gcc -E -P -undef - < auditor-0002.sql.in 2>/dev/null | sed -e "s/--.*//" | awk 'NF' - >$@
+ chmod ugo-w $@
+
EXTRA_DIST = \
auditordb-postgres.conf \
test-auditor-db-postgres.conf \
+ $(sqlinputs) \
$(sql_DATA) \
pg_template.h pg_template.c \
pg_template.sh