summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-09 15:27:27 +0100
committerGitHub <noreply@github.com>2021-11-09 15:27:27 +0100
commitd4953c0185dc467517cc52ebcb99a62a8e26a84b (patch)
tree606c4975465f2a70d74b7ea4cdf950d9a842757c
parent4f65befc39bcd9d1e1b227e3c5612ecc87a3abae (diff)
parent555e2155749f72089ec53239c641a320712d0feb (diff)
downloadpodman-d4953c0185dc467517cc52ebcb99a62a8e26a84b.tar.gz
podman-d4953c0185dc467517cc52ebcb99a62a8e26a84b.tar.bz2
podman-d4953c0185dc467517cc52ebcb99a62a8e26a84b.zip
Merge pull request #12232 from ianw/make-c-files
Match .c files in Makefile
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 00afd1dfd..47f30e5fa 100644
--- a/Makefile
+++ b/Makefile
@@ -62,10 +62,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)