build: simplify clean target

Move some clean commands into more relevant makefiles.
This commit is contained in:
Kelvin M. Klann 2023-07-29 07:19:25 -03:00
parent 3675da93ae
commit 152a21f151
3 changed files with 12 additions and 11 deletions

View file

@ -175,17 +175,6 @@ clean:
rm -f $(SECCOMP_FILTERS)
rm -f $(SYNTAX_FILES)
rm -f firejail*.rpm
rm -f src/fnettrace/static-ip-map
rm -fr test/environment/-testdir
rm -f test/environment/index.html*
rm -f test/environment/logfile*
rm -f test/environment/wget-log*
rm -f test/sysutils/firejail_t*
rm -f test/utils/firejail-test-file*
rm -f test/utils/index.html*
rm -f test/utils/lstesting
rm -f test/utils/wget-log
cd test/compile; ./compile.sh --clean; cd ../..
.PHONY: distclean
distclean: clean

View file

@ -7,6 +7,8 @@ MOD_DIR = $(ROOT)/src/$(MOD)
PROG = $(MOD_DIR)/$(MOD)
TARGET = $(PROG)
CLEANFILES += static-ip-map
include $(ROOT)/src/prog.mk
all: $(TARGET) static-ip-map

View file

@ -12,3 +12,13 @@ $(TESTS):
.PHONY: clean
clean:
for test in $(TESTS); do rm -f "$$test/$$test.log"; done
rm -fr environment/-testdir
rm -f environment/index.html*
rm -f environment/logfile*
rm -f environment/wget-log*
rm -f sysutils/firejail_t*
rm -f utils/firejail-test-file*
rm -f utils/index.html*
rm -f utils/lstesting
rm -f utils/wget-log
cd compile && ./compile.sh --clean