summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Wienand <iwienand@redhat.com>2021-11-09 13:40:18 +1100
committerMatthew Heon <matthew.heon@pm.me>2021-11-12 11:08:25 -0500
commite9f6e5194c491f01617763c02a0d8abd0cf02e79 (patch)
tree1b2f8a7913c6885ebfa05b049e2abf43f36326e8
parentde852ebd0561be53e6f9d1a6b2ec9f35d1aab9bb (diff)
downloadpodman-e9f6e5194c491f01617763c02a0d8abd0cf02e79.tar.gz
podman-e9f6e5194c491f01617763c02a0d8abd0cf02e79.tar.bz2
podman-e9f6e5194c491f01617763c02a0d8abd0cf02e79.zip
Match .c files in Makefile
Ensure that rebuilds happen when .c files are updated in the source tree. Signed-off-by: Ian Wienand <iwienand@redhat.com>
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cf796ed3c..d63cb4549 100644
--- a/Makefile
+++ b/Makefile
@@ -59,10 +59,11 @@ PKG_MANAGER ?= $(shell command -v dnf yum|head -n1)
PRE_COMMIT = $(shell command -v bin/venv/bin/pre-commit ~/.local/bin/pre-commit pre-commit | head -n1)
# This isn't what we actually build; it's a superset, used for target
-# dependencies. Basically: all *.go files, except *_test.go, and except
-# anything in a dot subdirectory. If any of these files is newer than
-# our target (bin/podman{,-remote}), a rebuild is triggered.
-SOURCES = $(shell find . -path './.*' -prune -o \( -name '*.go' -a ! -name '*_test.go' \) -print)
+# dependencies. Basically: all *.go and *.c files, except *_test.go,
+# and except anything in a dot subdirectory. If any of these files is
+# newer than our target (bin/podman{,-remote}), a rebuild is
+# triggered.
+SOURCES = $(shell find . -path './.*' -prune -o \( \( -name '*.go' -o -name '*.c' \) -a ! -name '*_test.go' \) -print)
BUILDFLAGS := -mod=vendor $(BUILDFLAGS)