- @sh -c 'grep -n strcpy *.c* --exclude chan_lcr.c --exclude bchannel.c --exclude callerid.c ; if test $$''? = 0 ; then echo "dont use strcpy, use makro instead." ; exit -1 ; fi'
- @sh -c 'grep -n strncpy *.c* --exclude chan_lcr.c --exclude bchannel.c --exclude callerid.c ; if test $$''? = 0 ; then echo "dont use strncpy, use makro instead." ; exit -1 ; fi'
- @sh -c 'grep -n strcat *.c* --exclude chan_lcr.c --exclude bchannel.c --exclude callerid.c ; if test $$''? = 0 ; then echo "dont use strcat, use makro instead." ; exit -1 ; fi'
- @sh -c 'grep -n strncat *.c* --exclude chan_lcr.c --exclude bchannel.c --exclude callerid.c ; if test $$''? = 0 ; then echo "dont use strncat, use makro instead." ; exit -1 ; fi'
- @sh -c 'grep -n sprintf *.c* --exclude chan_lcr.c --exclude bchannel.c --exclude callerid.c ; if test $$''? = 0 ; then echo "dont use sprintf, use makro instead." ; exit -1 ; fi'
- @sh -c 'grep -n snprintf *.c* --exclude chan_lcr.c --exclude bchannel.c --exclude callerid.c ; if test $$''? = 0 ; then echo "dont use snprintf, use makro instead." ; exit -1 ; fi'
- mkdir -p $(INSTALLdir)
- mkdir -p $(INSTALLdir)/extensions
- @if test -a $(INSTALLdir)/options.conf ; then \
- echo "NOTE: options.conf already exists, not changed." ; else \
- cp -v default/options.conf $(INSTALLdir) ; fi
- @if test -a $(INSTALLdir)/interface.conf ; then \
- echo "NOTE: interface.conf already exists, not changed." ; else \
- cp -v default/interface.conf $(INSTALLdir) ; fi
- @if test -a $(INSTALLdir)/routing.conf ; then \
- echo "NOTE: routing.conf already exists, not changed." ; else \
- cp -v default/routing.conf $(INSTALLdir) ; fi
- @if test -a $(INSTALLdir)/numbering_int.conf ; then \
+ @fns='strcpy strncpy strcat strncat sprintf snprintf' ; \
+ files=$$( find $(srcdir) -type f -name "*.c*" \
+ | $(GREP) -v -e chan_lcr.c -e callerid.c ) ; \
+ test -z "$$files" || { for fn in $$fns ; do \
+ $(GREP) -n $$fn $$files ; if test $$? = 0 ; then \
+ ( echo "dont use $$fn, use makro instead." ; exit -1 ) ; \
+ fi ; \
+ done ; }
+ mkdir -p '$(DESTDIR)$(CONFIGdir)'
+ mkdir -p '$(DESTDIR)$(SHAREdir)'
+ mkdir -p '$(DESTDIR)$(LOGdir)'
+ mkdir -p '$(DESTDIR)$(EXTENSIONdir)'
+ @fs='$(CONFIGFILES)' ; for f in $$fs ; do \
+ if test -a "$(DESTDIR)$(CONFIGdir)/$$f" ; then \
+ echo "NOTE: $$f already exists, not changed." ; \
+ else $(INSTALL) -m 644 $(srcdir)/default/$$f "$(DESTDIR)$(CONFIGdir)/" ; fi ; \
+ done
+ @if test -a "$(DESTDIR)$(CONFIGdir)/numbering_int.conf" ; then \