@ -239,7 +239,9 @@ ifeq ($(OSARCH),SunOS)
_ASTCFLAGS += -Wcast-align -DSOLARIS -I../include/solaris-compat -I/opt/ssl/include -I/usr/local/ssl/include -D_XPG4_2 -D__EXTENSIONS__
_ASTCFLAGS += -Wcast-align -DSOLARIS -I../include/solaris-compat -I/opt/ssl/include -I/usr/local/ssl/include -D_XPG4_2 -D__EXTENSIONS__
e n d i f
e n d i f
ifneq ($(GREP), : )
i f e q ( $( GREP ) , )
else ifeq ($(GREP), : )
e l s e
ASTERISKVERSION:= $( shell GREP = $( GREP) AWK = $( AWK) GIT = $( GIT) build_tools/make_version .)
ASTERISKVERSION:= $( shell GREP = $( GREP) AWK = $( AWK) GIT = $( GIT) build_tools/make_version .)
e n d i f
e n d i f
i f n e q ( $( AWK ) , )
i f n e q ( $( AWK ) , )
@ -467,7 +469,9 @@ endif
$( INSTALL) -m 644 $$ x " $( DESTDIR) $( ASTDATADIR) /rest-api " ; \
$( INSTALL) -m 644 $$ x " $( DESTDIR) $( ASTDATADIR) /rest-api " ; \
done
done
ifneq ($(GREP), : )
i f e q ( $( GREP ) , )
else ifeq ($(GREP), : )
e l s e
XML_core_en_US = $( foreach dir,$( MOD_SUBDIRS) ,$( shell $( GREP) -l "language=\"en_US\"" $( dir) /*.c $( dir) /*.cc 2>/dev/null) )
XML_core_en_US = $( foreach dir,$( MOD_SUBDIRS) ,$( shell $( GREP) -l "language=\"en_US\"" $( dir) /*.c $( dir) /*.cc 2>/dev/null) )
e n d i f
e n d i f
@ -486,7 +490,9 @@ doc/core-en_US.xml: makeopts .lastclean $(XML_core_en_US)
@echo
@echo
@echo "</docs>" >> $@
@echo "</docs>" >> $@
ifneq ($(GREP), : )
i f e q ( $( GREP ) , )
else ifeq ($(GREP), : )
e l s e
XML_full_en_US = $( foreach dir,$( MOD_SUBDIRS) ,$( shell $( GREP) -l "language=\"en_US\"" $( dir) /*.c $( dir) /*.cc 2>/dev/null) )
XML_full_en_US = $( foreach dir,$( MOD_SUBDIRS) ,$( shell $( GREP) -l "language=\"en_US\"" $( dir) /*.c $( dir) /*.cc 2>/dev/null) )
e n d i f
e n d i f
@ -630,7 +636,9 @@ oldmodcheck:
fi
fi
ld-cache-update :
ld-cache-update :
ifneq ($(LDCONFIG), : )
i f e q ( $( LDCONFIG ) , )
else ifeq ($(LDCONFIG), : )
e l s e
i f e q ( $( DESTDIR ) , ) # DESTDIR means binary archive creation; ldconfig should be run on postinst
i f e q ( $( DESTDIR ) , ) # DESTDIR means binary archive creation; ldconfig should be run on postinst
@if [ $$ ( id -u) -eq 0 ] ; then \
@if [ $$ ( id -u) -eq 0 ] ; then \
$( LDCONFIG) " $( ASTLIBDIR) / " ; \
$( LDCONFIG) " $( ASTLIBDIR) / " ; \
@ -984,7 +992,9 @@ ifeq ($(HAVE_DAHDI),1)
rm -f $( DESTDIR) $( DAHDI_UDEV_HOOK_DIR) /40-asterisk
rm -f $( DESTDIR) $( DAHDI_UDEV_HOOK_DIR) /40-asterisk
e n d i f
e n d i f
$( MAKE) -C sounds uninstall
$( MAKE) -C sounds uninstall
ifneq ($(LDCONFIG), : )
i f e q ( $( LDCONFIG ) , )
else ifeq ($(LDCONFIG), : )
e l s e
$( LDCONFIG) " $( ASTLIBDIR) / " || :
$( LDCONFIG) " $( ASTLIBDIR) / " || :
e n d i f
e n d i f