Make: break directly on compile warning

This commit is contained in:
Olof hagsand 2025-01-23 12:21:12 +01:00
parent 2831be4153
commit 2d709378f7
4 changed files with 21 additions and 7 deletions

View file

@ -86,10 +86,10 @@ checkinstall:
# May cause circular include->include,lib
$(SUBDIRS2): $(SUBDIRS1) # Cannot build app before lib (for parallel make -j)
(cd $@ && $(MAKE) $(MFLAGS) all)
(cd $@ && $(MAKE) $(MFLAGS) all || exit 1)
$(SUBDIRS1):
(cd $@ && $(MAKE) $(MFLAGS) all)
(cd $@ && $(MAKE) $(MFLAGS) all || exit 1)
depend:
for i in $(SUBDIRS) doc example docker; \

18
configure vendored
View file

@ -777,6 +777,7 @@ with_yang_standard_dir
with_clicon_user
with_clicon_group
enable_nls
enable_event_poll
'
ac_precious_vars='build_alias
host_alias
@ -1423,6 +1424,7 @@ Optional Features:
http/1 only
--enable-netsnmp Enable net-snmp Clixon YANG mapping
--enable-event-poll Enable event polling feature
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -2838,10 +2840,10 @@ fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug is $ac_enable_debug" >&5
printf "%s\n" "debug is $ac_enable_debug" >&6; }
if test "$ac_enable_debug" = "yes"; then
: ${CFLAGS="-g -Wall"}
: ${CFLAGS="-g -Wall -Werror"}
INSTALLFLAGS=""
else
: ${CFLAGS="-O2 -Wall"}
: ${CFLAGS="-O2 -Wall -Werror"}
fi
ac_config_headers="$ac_config_headers include/clixon_config.h lib/clixon/clixon.h"
@ -7019,6 +7021,18 @@ fi
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Check whether --enable-event-poll was given.
if test ${enable_event_poll+y}
then :
enableval=$enable_event_poll; if test "$enable_event_poll" = "yes"; then
printf "%s\n" "#define CLIXON_EVENT_POLL 1" >>confdefs.h
fi
fi
ac_config_files="$ac_config_files Makefile lib/Makefile lib/src/Makefile lib/clixon/Makefile apps/Makefile apps/cli/Makefile apps/backend/Makefile apps/netconf/Makefile apps/restconf/Makefile apps/snmp/Makefile include/Makefile etc/Makefile etc/clixonrc example/Makefile example/main/Makefile example/main/example.xml docker/Makefile docker/clixon-dev/Makefile docker/example/Makefile docker/test/Makefile yang/Makefile yang/clixon/Makefile yang/mandatory/Makefile doc/Makefile test/Makefile test/config.sh test/cicd/Makefile test/vagrant/Makefile"
cat >confcache <<\_ACEOF

View file

@ -67,10 +67,10 @@ AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[Build with debug symbols,
AC_MSG_RESULT(debug is $ac_enable_debug)
if test "$ac_enable_debug" = "yes"; then
: ${CFLAGS="-g -Wall"}
: ${CFLAGS="-g -Wall -Werror"}
INSTALLFLAGS=""
else
: ${CFLAGS="-O2 -Wall"}
: ${CFLAGS="-O2 -Wall -Werror"}
fi
AC_CONFIG_HEADERS([include/clixon_config.h lib/clixon/clixon.h])

View file

@ -54,7 +54,7 @@ depend:
do (cd $$i; $(MAKE) $(MFLAGS) depend); done
$(SUBDIRS):
(cd $@; $(MAKE) $(MFLAGS) all)
(cd $@; $(MAKE) $(MFLAGS) all || exit 1)
install:
for i in $(SUBDIRS); \