aboutsummaryrefslogtreecommitdiffstats
path: root/src/prog.mk
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-07-15 02:31:51 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-11-21 17:37:17 -0300
commitcbdee6555bb081db95bb7d412ec00cf9333a0745 (patch)
tree199033861e55c2bbd1735562c00a150901c9b2e3 /src/prog.mk
parentmakefiles: rename common.mk to prog.mk (diff)
downloadfirejail-cbdee6555bb081db95bb7d412ec00cf9333a0745.tar.gz
firejail-cbdee6555bb081db95bb7d412ec00cf9333a0745.tar.zst
firejail-cbdee6555bb081db95bb7d412ec00cf9333a0745.zip
makefiles: add TOCLEAN and TODISTCLEAN variables
So that includers of src/prog.mk or src/so.mk can just define anything extra that needs to be cleaned without having to override the "clean" target (or having to declare a "distclean" target). Example usage: TOCLEAN += foo TODISTCLEAN += bar
Diffstat (limited to 'src/prog.mk')
-rw-r--r--src/prog.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prog.mk b/src/prog.mk
index 6ec216b46..f78575f06 100644
--- a/src/prog.mk
+++ b/src/prog.mk
@@ -22,7 +22,7 @@ $(PROG): $(OBJS) $(ROOT)/config.mk
22 $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) 22 $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS)
23 23
24.PHONY: clean 24.PHONY: clean
25clean:; rm -fr *.o $(PROG) *.gcov *.gcda *.gcno *.plist 25clean:; rm -fr *.o $(PROG) *.gcov *.gcda *.gcno *.plist $(TOCLEAN)
26 26
27.PHONY: distclean 27.PHONY: distclean
28distclean: clean 28distclean: clean; rm -fr $(TODISTCLEAN)