From d07c4f1a29732f3901d7a9d3c43cecf0a7eee657 Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Tue, 3 Jan 2023 18:23:43 +0100 Subject: Specify opendeco-cli.o's dependency on LICENSE files explicitly --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 00461f7..0ff054e 100644 --- a/Makefile +++ b/Makefile @@ -45,13 +45,16 @@ opendeco_test: $(OBJ_TST) @$(CC) -o opendeco_test $(OBJ_TST) $(LDFLAGS) libopendeco.a: $(OBJ_LIB) + @echo " AR $@" @ar rs libopendeco.a $(OBJ_LIB) -%.o: %.c # override the built-in default recipe -%.o: %.c $(LICENSES) +%.o: %.c @echo " CC $@" @mkdir -p .dep/$(dir $@) - @$(CC) $(CFLAGS) -MD -MF .dep/$@.dep -o $@ -c $< + @$(CC) $(CFLAGS) -MMD -MF .dep/$@.dep -o $@ -c $< + +# generate LICENSES.h files for --licenses +src/opendeco-cli.o: $(LICENSES) %LICENSE.h: %LICENSE @echo " XXD $@" -- cgit v1.2.3-70-g09d2