--- Makefile 2005-11-17 08:49:44.000000000 -0700 +++ Makefile.orig 2005-11-17 08:41:33.000000000 -0700 @@ -81,15 +81,10 @@ # MALLOC_DEBUG = #-include $(PWD)/include/asterisk/astmm.h -# Global prefix to prepend while installing files. +# Where to install asterisk after compiling # Default -> leave empty INSTALL_PREFIX?= -# Where to install asterisk, similar to the --prefix option of ./configure in -# autotools packages -# Default -> /usr/local -PREFIX?=/usr/local - # Staging directory # Files are copied here temporarily during the install process # For example, make DESTDIR=/tmp/asterisk woud put things in @@ -111,17 +106,17 @@ BUSYDETECT+= #-DBUSYDETECT_COMPARE_TONE_AND_SILENCE ifneq ($(OSARCH),SunOS) - ASTLIBDIR=$(INSTALL_PREFIX)$(PREFIX)/lib/asterisk - ASTVARLIBDIR=$(INSTALL_PREFIX)$(PREFIX)/share/asterisk - ASTETCDIR=$(INSTALL_PREFIX)$(PREFIX)/etc/asterisk + ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk + ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk + ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk - ASTHEADERDIR=$(INSTALL_PREFIX)$(PREFIX)/include/asterisk + ASTHEADERDIR=$(INSTALL_PREFIX)/usr/include/asterisk ASTCONFPATH=$(ASTETCDIR)/asterisk.conf - ASTBINDIR=$(INSTALL_PREFIX)$(PREFIX)/bin - ASTSBINDIR=$(INSTALL_PREFIX)$(PREFIX)/sbin + ASTBINDIR=$(INSTALL_PREFIX)/usr/bin + ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run - ASTMANDIR=$(INSTALL_PREFIX)$(PREFIX)/man + ASTMANDIR=$(INSTALL_PREFIX)/usr/share/man MODULES_DIR=$(ASTLIBDIR)/modules AGI_DIR=$(ASTVARLIBDIR)/agi-bin else