From c89c7eff4945dd56887530705841ef648427b35d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 26 Sep 2023 11:02:53 +0200 Subject: add auditor-0002.sql build rule --- src/auditordb/Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/auditordb') 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 -- cgit v1.2.3