This patch will enable making crash as follows: $ make -j8 warn lzo zstd Signed-off-by: Tao Liu <ltao@xxxxxxxxxx> --- Makefile | 42 +++++++++++++++++------------------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index ede87a1..e1ec83c 100644 --- a/Makefile +++ b/Makefile @@ -305,33 +305,25 @@ install: unconfig: make_configure @./configure -u -warn: make_configure - @./configure ${CONF_TARGET_FLAG} -w -b +config: make_configure + @if [ -n "$(findstring warn,$(MAKECMDGOALS))" ]; then \ + ./configure -q ${CONF_TARGET_FLAG} -w -b; fi + @if [ -n "$(findstring Warn,$(MAKECMDGOALS))" ]; then \ + ./configure -q ${CONF_TARGET_FLAG} -W -b; fi + @if [ -n "$(findstring nowarn,$(MAKECMDGOALS))" ]; then \ + ./configure -q ${CONF_TARGET_FLAG} -n -b; fi + @if [ -n "$(findstring lzo,$(MAKECMDGOALS))" ]; then \ + ./configure -q -x lzo ${CONF_TARGET_FLAG} -w -b; fi + @if [ -n "$(findstring snappy,$(MAKECMDGOALS))" ]; then \ + ./configure -q -x snappy ${CONF_TARGET_FLAG} -w -b; fi + @if [ -n "$(findstring zstd,$(MAKECMDGOALS))" ]; then \ + ./configure -q -x zstd ${CONF_TARGET_FLAG} -w -b; fi + @if [ -n "$(findstring valgrind,$(MAKECMDGOALS))" ]; then \ + ./configure -q -x valgrind ${CONF_TARGET_FLAG} -w -b; fi @$(MAKE) gdb_merge -Warn: make_configure - @./configure ${CONF_TARGET_FLAG} -W -b - @$(MAKE) gdb_merge - -nowarn: make_configure - @./configure ${CONF_TARGET_FLAG} -n -b - @$(MAKE) gdb_merge - -lzo: make_configure - @./configure -x lzo ${CONF_TARGET_FLAG} -w -b - @$(MAKE) gdb_merge - -snappy: make_configure - @./configure -x snappy ${CONF_TARGET_FLAG} -w -b - @$(MAKE) gdb_merge - -zstd: make_configure - @./configure -x zstd ${CONF_TARGET_FLAG} -w -b - @$(MAKE) gdb_merge - -valgrind: make_configure - @./configure -x valgrind ${CONF_TARGET_FLAG} -w -b - @$(MAKE) gdb_merge +warn Warn nowarn lzo snappy zstd valgrind: config + @echo &> /dev/null main.o: ${GENERIC_HFILES} main.c ${CC} -c ${CRASH_CFLAGS} main.c ${WARNING_OPTIONS} ${WARNING_ERROR} -- 2.33.1 -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/crash-utility