aboutsummaryrefslogtreecommitdiffstats
path: root/src/prog.mk
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-06-18 04:24:28 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-06-24 12:01:28 -0300
commitb9864fd46ff583e019314855b7194df11c8a1050 (patch)
tree3feca79778eea1bf5e171c27b316650a519fd55c /src/prog.mk
parentbuild: rename MOD vars to EXTRA vars (diff)
downloadfirejail-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/prog.mk')
-rw-r--r--src/prog.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/prog.mk b/src/prog.mk
index 77ad0f65b..d138fc7ee 100644
--- a/src/prog.mk
+++ b/src/prog.mk
@@ -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 PROG and TARGET and may also want to 5# The includer should probably define PROG and TARGET and may also want to
6# define EXTRA_HDRS, EXTRA_OBJS, TOCLEAN and TODISTCLEAN. 6# define EXTRA_HDRS, EXTRA_OBJS, CLEANFILES and DISTCLEANFILES.
7 7
8HDRS := $(sort $(wildcard *.h)) $(EXTRA_HDRS) 8HDRS := $(sort $(wildcard *.h)) $(EXTRA_HDRS)
9SRCS := $(sort $(wildcard *.c)) 9SRCS := $(sort $(wildcard *.c))
@@ -33,7 +33,7 @@ $(PROG): $(OBJS) $(ROOT)/config.mk
33 $(CC) $(PROG_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) 33 $(CC) $(PROG_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
34 34
35.PHONY: clean 35.PHONY: clean
36clean:; rm -fr *.o $(PROG) *.gcov *.gcda *.gcno *.plist $(TOCLEAN) 36clean:; rm -fr *.o $(PROG) *.gcov *.gcda *.gcno *.plist $(CLEANFILES)
37 37
38.PHONY: distclean 38.PHONY: distclean
39distclean: clean; rm -fr $(TODISTCLEAN) 39distclean: clean; rm -fr $(DISTCLEANFILES)