diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-06-18 04:27:22 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-06-25 10:03:44 -0300 |
commit | 75587a4de41dbf0bdc8fabdd7b2c39e3a46613a8 (patch) | |
tree | 8d62254cbc33124fb0c9478e79738aa04acd1bc1 /src/prog.mk | |
parent | build: rename TOCLEAN and TODISTCLEAN variables (diff) | |
download | firejail-75587a4de41dbf0bdc8fabdd7b2c39e3a46613a8.tar.gz firejail-75587a4de41dbf0bdc8fabdd7b2c39e3a46613a8.tar.zst firejail-75587a4de41dbf0bdc8fabdd7b2c39e3a46613a8.zip |
build: standardize clean/distclean targets in src
Changes:
* clean: remove the same types of files in src/prog.mk and src/so.mk
* distclean: remove unused recipes and DISTCLEANFILES variable
Diffstat (limited to 'src/prog.mk')
-rw-r--r-- | src/prog.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/prog.mk b/src/prog.mk index d138fc7ee..5ed706da9 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, CLEANFILES and DISTCLEANFILES. | 6 | # define EXTRA_HDRS and EXTRA_OBJS and extend CLEANFILES. |
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)) |
@@ -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 |
36 | clean:; rm -fr *.o $(PROG) *.gcov *.gcda *.gcno *.plist $(CLEANFILES) | 36 | clean:; rm -fr $(PROG) $(CLEANFILES) |
37 | 37 | ||
38 | .PHONY: distclean | 38 | .PHONY: distclean |
39 | distclean: clean; rm -fr $(DISTCLEANFILES) | 39 | distclean: clean |