From 83ae0ed8379e2e00815cbe60e2e512665e48c1ed Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Thu, 23 Jun 2022 02:51:52 -0300 Subject: makefiles: stop failing when config.mk does not exist This allows running `make clean` and `make distclean` (and possibly others) without having to run ./configure beforehand. Note that some packaging-related targets still depend on the existence of generated files. For example: * dist: config.mk * deb: config.sh Commands used to search and replace: $ git grep -Elz 'include *([^ ]*/)?config.mk' | xargs -0 -I '{}' \ sh -c "printf '%s\n' \ \"\$(sed -E 's|^include *(([^ ]*/)?config.mk)|-include \1|' '{}')\" >'{}'" Relates to #5140. --- src/libpostexecseccomp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libpostexecseccomp') diff --git a/src/libpostexecseccomp/Makefile b/src/libpostexecseccomp/Makefile index 2f108d8b9..14e0cdb1d 100644 --- a/src/libpostexecseccomp/Makefile +++ b/src/libpostexecseccomp/Makefile @@ -1,5 +1,5 @@ ROOT = ../.. -include $(ROOT)/config.mk +-include $(ROOT)/config.mk H_FILE_LIST = $(sort $(wildcard *.h)) C_FILE_LIST = $(sort $(wildcard *.c)) -- cgit v1.2.3-54-g00ecf