diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-06-18 04:24:28 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-06-24 12:01:28 -0300 |
commit | b9864fd46ff583e019314855b7194df11c8a1050 (patch) | |
tree | 3feca79778eea1bf5e171c27b316650a519fd55c /src/so.mk | |
parent | build: rename MOD vars to EXTRA vars (diff) | |
download | firejail-b9864fd46ff583e019314855b7194df11c8a1050.tar.gz firejail-b9864fd46ff583e019314855b7194df11c8a1050.tar.zst firejail-b9864fd46ff583e019314855b7194df11c8a1050.zip |
build: rename TOCLEAN and TODISTCLEAN variables
To CLEANFILES and DISTCLEANFILES, respectively.
This matches what GNU automake uses.
Commands used to search and replace:
$ git grep -IFlz -e TOCLEAN -e TODISTCLEAN |
xargs -0 -I '{}' sh -c "printf '%s\n' \"\$(sed \
-e 's/TOCLEAN/CLEANFILES/g' \
-e 's/TODISTCLEAN/DISTCLEANFILES/g' '{}')\" >'{}'"
Added on commit cbdee6555 ("makefiles: add TOCLEAN and TODISTCLEAN
variables", 2022-07-15) / PR #5478.
Diffstat (limited to 'src/so.mk')
-rw-r--r-- | src/so.mk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ | |||
3 | # Note: $(ROOT)/config.mk must be included before this file. | 3 | # Note: $(ROOT)/config.mk must be included before this file. |
4 | # | 4 | # |
5 | # The includer should probably define SO and TARGET and may also want to define | 5 | # The includer should probably define SO and TARGET and may also want to define |
6 | # EXTRA_HDRS, EXTRA_OBJS, TOCLEAN and TODISTCLEAN. | 6 | # EXTRA_HDRS, EXTRA_OBJS, CLEANFILES and DISTCLEANFILES. |
7 | 7 | ||
8 | HDRS := $(sort $(wildcard *.h)) $(EXTRA_HDRS) | 8 | HDRS := $(sort $(wildcard *.h)) $(EXTRA_HDRS) |
9 | SRCS := $(sort $(wildcard *.c)) | 9 | SRCS := $(sort $(wildcard *.c)) |
@@ -28,7 +28,7 @@ $(SO): $(OBJS) $(ROOT)/config.mk | |||
28 | $(CC) $(SO_LDFLAGS) -shared -fPIC -z relro $(LDFLAGS) -o $@ $(OBJS) -ldl | 28 | $(CC) $(SO_LDFLAGS) -shared -fPIC -z relro $(LDFLAGS) -o $@ $(OBJS) -ldl |
29 | 29 | ||
30 | .PHONY: clean | 30 | .PHONY: clean |
31 | clean:; rm -fr $(OBJS) $(SO) *.plist $(TOCLEAN) | 31 | clean:; rm -fr $(OBJS) $(SO) *.plist $(CLEANFILES) |
32 | 32 | ||
33 | .PHONY: distclean | 33 | .PHONY: distclean |
34 | distclean: clean; rm -fr $(TODISTCLEAN) | 34 | distclean: clean; rm -fr $(DISTCLEANFILES) |