[asterisk-dev] DESTDIR vs INSTALL_PATH ?

Luigi Rizzo rizzo at icir.org
Sun Dec 9 08:16:18 CST 2007


hi,
there is some confusion (in trunk at least) on the role of DESTDIR
and INSTALL_PATH.

DESTDIR is widely used in the top level Makefile (and below) to determine
where things get installed. There are two noticeable exceptions:

1. in creating asterisk.conf (which is part of the 'samples' target),
   DESTDIR is ignored, so the entries in [directories] are wrong if you
   install to a non-standard place.

   PROPOSED FIX: prepend ${DESTDIR} to all the entries in [directories]
   in the code that creates asterisk.conf . This should not break anything.

2. in defining the compiled-in defaults, build_tools/make_defaults_h
   uses INSTALL_PATH instead of DESTDIR. According to grep, this is the
   only file (in addition to doc/osp.txt) where INSTALL_PATH, and i don't
   see much of a reason for using two different variables to mean the
   same thing.

   PROPOSED FIX: replace INSTALL_PATH with DESTDIR in
   build_tools/make_defaults_h . For some amount of time we could
   put a warning the Makefile to detect the setting of INSTALL_PATH,
   and inform the user that the variable is deprecated.


If anyone has objections please let me know.

	cheers
	luigi



More information about the asterisk-dev mailing list