Debian Codegraph @

debian/patches/0003-Fix-cross-build.patch

raw
1 From: Dale Richards <[email protected]>
2 Date: Thu, 11 Jun 2026 19:34:22 +0100
3 Subject: Fix cross build
4
5 Mark the generated *-resources.c files as .NOTINTERMEDIATE so that make
6 does not delete and regenerate them (which breaks cross builds where the
7 resource compiler differs from the build architecture).
8
9 Forwarded: https://github.com/geoffreybennett/alsa-scarlett-gui/pull/262
10 ---
11 src/Makefile | 1 +
12 1 file changed, 1 insertion(+)
13
14 diff --git a/src/Makefile b/src/Makefile
15 index a4b4908..0cab448 100644
16 --- a/src/Makefile
17 +++ b/src/Makefile
18 @@ -58,6 +58,7 @@ COMPILE.c = $(CC) $(DEPFLAGS) $(CFLAGS) -c
19
20 XML_SRC := $(wildcard *.xml)
21 XML_OBJ := $(patsubst %.xml,%.c,$(XML_SRC))
22 +.NOTINTERMEDIATE: $(XML_OBJ)
23
24 %.o: %.c
25 %.o: %.c Makefile $(DEPDIR)/%.d | $(DEPDIR)