Fabian Greffrath wrote: > the dh_auto_install script checks if a Makefile has been generated by > MakeMaker and then overrides its PREFIX variable. However, it is not > only Makefiles generated by MakeMaker that need this variable > overridden. To be honest, every Makefile that I know of that is not > generated by autotools (or similar) does contain a PREFIX variable that > is by default set to PREFIX=/usr/local in most cases. Of source this > variable needs to be overridden whenever this Makefile is called (well, > maybe not in the clean rule). > > The attached patch changes the search string to match every possible way > (that I know of) to set a PREFIX variable in the Makefile and triggers to > override it. Please note that the patch only applies to dh_auto_install, > but should by applied against dh_auto_build as well.
There exist some Makefiles that do something like $(DESTDIR)$(PREFIX). Which makes sense if you consider the PREFIX to be the prefix it is installed under, and the DESTDIR the directory to install to (ie, for packaging). So they can't both be set. PREFIX is in general not well-defined; some things install to $(PREFIX)/usr/bin and others to $(PREFIX)/bin. dh_auto_install allows you to pass parameters on to make via -- PREFIX=/usr if necessary, so I suggest you use that. -- see shy jo
signature.asc
Description: Digital signature

