aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2023-01-03 18:23:43 +0100
committerGravatar Tim Segers <tsegers@pm.me>2023-01-07 15:24:51 +0100
commitd07c4f1a29732f3901d7a9d3c43cecf0a7eee657 (patch)
treebe48ae866ed26857f1f70d7c6b4eeda98e1c6898
parent003e2b52ebc2bb2172e1b6a9e363e14a4a18a722 (diff)
downloadopendeco-d07c4f1a29732f3901d7a9d3c43cecf0a7eee657.tar.gz
Specify opendeco-cli.o's dependency on LICENSE files explicitly
-rw-r--r--Makefile9
1 files 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 $@"