diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-10-12 23:51:24 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-11-21 17:11:23 -0300 |
commit | 87db1072092f388a3ff260736e77d168164bd398 (patch) | |
tree | aabf15c5eb21a981c459e681f4a55b737dfce268 /src/lib/Makefile | |
parent | makefiles: equalize object dependencies in program targets (diff) | |
download | firejail-87db1072092f388a3ff260736e77d168164bd398.tar.gz firejail-87db1072092f388a3ff260736e77d168164bd398.tar.zst firejail-87db1072092f388a3ff260736e77d168164bd398.zip |
makefiles: rename H_FILE_LIST and C_FILE_LIST
To HDRS and SRCS, respectively.
To be more consistent with the OBJS variable.
Misc: These names also appear to be more common from the makefiles that
I've seen.
Commands used to search and replace:
git grep -IFlz -e H_FILE_LIST -e C_FILE_LIST -- src |
xargs -0 -I '{}' sh -c "printf '%s\n' \"\$(sed \
-e 's/^H_FILE_LIST *=/HDRS =/' \
-e 's/\$(H_FILE_LIST)/\$(HDRS)/g' \
-e 's/^C_FILE_LIST *=/SRCS =/' \
-e 's/\$(C_FILE_LIST:/\$(SRCS:/g' \
'{}')\" >'{}'"
Diffstat (limited to 'src/lib/Makefile')
-rw-r--r-- | src/lib/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Makefile b/src/lib/Makefile index d9b500409..ff1cfcf74 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile | |||
@@ -9,7 +9,7 @@ include $(ROOT)/src/common.mk | |||
9 | .PHONY: lib | 9 | .PHONY: lib |
10 | lib: $(OBJS) | 10 | lib: $(OBJS) |
11 | 11 | ||
12 | %.o : %.c $(H_FILE_LIST) $(ROOT)/config.mk | 12 | %.o : %.c $(HDRS) $(ROOT)/config.mk |
13 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | 13 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
14 | 14 | ||
15 | .PHONY: clean | 15 | .PHONY: clean |