From 423cf255fad75fd2f7342fe301bfb625d4611381 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sat, 4 Jan 2025 16:21:34 -0600 Subject: [PATCH] Properly clean when DROP_EXISTING is used --- make_files/things.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/make_files/things.mk b/make_files/things.mk index 7514865..4b11c01 100644 --- a/make_files/things.mk +++ b/make_files/things.mk @@ -1,4 +1,5 @@ -# Copyright (C) 2023, 2024 The Meme Factory, Inc. http://www.karlpinc.com/ +# Copyright (C) 2023, 2024, 2025 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 @@ -41,7 +42,8 @@ CREATE_TARGETS := $(patsubst %,create/%.sql,$(ORDER)) DROP_TARGETS := $(patsubst %,drop/%.sql,$(ORDER)) ifdef DROP_EXISTING -DROP_TARGETS := $(filter $(DROP_TARGETS),$(wildcard drop/*.m4)) +DROP_TARGETS := $(filter $(DROP_TARGETS), \ + $(patsubst %.m4,%.sql,$(wildcard drop/*.m4))) endif # These are the targets that can be made -- 2.34.1