From d8599658ffbb778722b036b9cd55ef810b5dcf4f Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 30 Jun 2025 19:28:50 +0200 Subject: [PATCH] Makefile: add Makefile to sources During my binary size reduce experiments I often switch build tags around but make binaries does not recompile in these cases. It is annoying to always do touch cmd/podman/main.go so let's add it to the SOURCES instead so the Makefile will recompile on changes. Signed-off-by: Paul Holzinger --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9925fdbf9c..698b24877a 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ endif # 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) +SOURCES = $(shell find . -path './.*' -prune -o \( \( -name '*.go' -o -name '*.c' \) -a ! -name '*_test.go' \) -print) Makefile BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_overlay CONTAINER_RUNTIME := $(shell command -v podman 2> /dev/null || echo docker)