diff options
author | Tim Segers <tsegers@pm.me> | 2023-01-03 18:23:43 +0100 |
---|---|---|
committer | Tim Segers <tsegers@pm.me> | 2023-01-07 15:24:51 +0100 |
commit | d07c4f1a29732f3901d7a9d3c43cecf0a7eee657 (patch) | |
tree | be48ae866ed26857f1f70d7c6b4eeda98e1c6898 | |
parent | 003e2b52ebc2bb2172e1b6a9e363e14a4a18a722 (diff) | |
download | opendeco-d07c4f1a29732f3901d7a9d3c43cecf0a7eee657.tar.gz |
Specify opendeco-cli.o's dependency on LICENSE files explicitly
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 $@" |