From fc7831eeda3533bfa655aad797b68e83c317dc20 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Fri, 20 Feb 2026 21:31:50 +0000 Subject: [PATCH] Support local m4 include files "Local" include files are in db/schemas/*//include/, where "" is functions, indexes, tables, triggers, etc. --- make_files/things.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/make_files/things.mk b/make_files/things.mk index c689838..a93c3f8 100644 --- a/make_files/things.mk +++ b/make_files/things.mk @@ -1,5 +1,4 @@ -# Copyright (C) 2023, 2024, 2025 The Meme Factory, Inc. -# http://www.karlpinc.com/ +# Copyright (C) 2023-2026 The Meme Factory, Inc. http://www.karlpinc.com/ # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -52,14 +51,17 @@ TARGETS := createthings.sql dropthings.sql $(CREATE_TARGETS) $(DROP_TARGETS) # Path to the m4 include directories. M4_GLOBAL_INCLUDE_PATH := ../../$(M4_GLOBAL_INCLUDE_PATH) M4_DB_INCLUDE_PATH := ../../$(M4_DB_INCLUDE_PATH) -M4_DB_INCLUDE_ARGS := -I $(M4_DB_INCLUDE_PATH) -I $(M4_GLOBAL_INCLUDE_PATH) +M4_LOCAL_INCLUDE_PATH := include +M4_DB_INCLUDE_ARGS := -I $(M4_LOCAL_INCLUDE_PATH) -I $(M4_DB_INCLUDE_PATH) \ + -I $(M4_GLOBAL_INCLUDE_PATH) # psql helper script PSQL_SETUP := ../../$(PSQL_SETUP) PSQL_DEPENDS := $(patsubst %,../../%, $(PSQL_DEPENDS)) # All the files that might matter when building the database -DB_DEPENDS := $(patsubst %,../../%,$(DB_DEPENDS)) Makefile +DB_DEPENDS := $(patsubst %,../../%,$(DB_DEPENDS)) \ + $(wildcard $(M4_LOCAL_INCLUDE_PATH)/*.m4) Makefile ## check Test that an input file exists for every table make expects .PHONY: check -- 2.34.1