diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-07-15 02:31:51 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-11-21 17:37:17 -0300 |
commit | cbdee6555bb081db95bb7d412ec00cf9333a0745 (patch) | |
tree | 199033861e55c2bbd1735562c00a150901c9b2e3 /src/so.mk | |
parent | makefiles: rename common.mk to prog.mk (diff) | |
download | firejail-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/so.mk')
-rw-r--r-- | src/so.mk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,7 +19,7 @@ $(SO): $(OBJS) $(ROOT)/config.mk | |||
19 | $(CC) $(LDFLAGS) -shared -fPIC -z relro -o $@ $(OBJS) -ldl | 19 | $(CC) $(LDFLAGS) -shared -fPIC -z relro -o $@ $(OBJS) -ldl |
20 | 20 | ||
21 | .PHONY: clean | 21 | .PHONY: clean |
22 | clean:; rm -fr $(OBJS) $(SO) *.plist | 22 | clean:; rm -fr $(OBJS) $(SO) *.plist $(TOCLEAN) |
23 | 23 | ||
24 | .PHONY: distclean | 24 | .PHONY: distclean |
25 | distclean: clean | 25 | distclean: clean; rm -fr $(TODISTCLEAN) |