Change Makefile so that 'clean' spares the vendor/ folder

Run 'make cleanall' to remove it as well
This commit is contained in:
Thomas Jensen 2023-07-01 20:59:27 +02:00
parent b91dfd5dff
commit 1cbd1f933c
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
2 changed files with 6 additions and 4 deletions

View File

@ -39,7 +39,7 @@ WIN_FLEX_BISON_DIR = vendor/flex_bison_$(WIN_FLEX_BISON_VERSION)
WIN_CMOCKA_VERSION = 1.1.0
WIN_CMOCKA_DIR = vendor/cmocka-$(WIN_CMOCKA_VERSION)
.PHONY: clean build cov win32 debug win32.debug win32.pcre infomsg replaceinfos test covtest \
.PHONY: clean cleanall build cov win32 debug win32.debug win32.pcre infomsg replaceinfos test covtest \
package win32.package package_common utest win32.utest static
@ -206,10 +206,12 @@ win32.utest: $(OUT_DIR)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean:
rm -f $(OUT_DIR)/boxes.h tools/boxes.cfg tools/LICENSE.txt tools/boxes.exe tools/README*.md boxes.portable.*.nupkg
rm -f tools/boxes.cfg tools/LICENSE.txt tools/boxes.exe tools/README*.md boxes.portable.*.nupkg
rm -f doc/boxes.1 doc/boxes.1.raw.html doc/boxes.1.html
rm -rf vendor
$(MAKE) -C src clean
cleanall: clean
rm -rf vendor
#EOF

View File

@ -133,7 +133,7 @@ package: $(BOXES_EXECUTABLE_NAME)
clean:
rm -rf $(OUT_DIR)
rm -f core $(GEN_HDR)
rm -f core
#EOF