[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Autoconf question



Hamish Moffatt writes:

> However I suspect you should not be doing "make prefix=...";
> you should make without overriding prefix, and just override it
> during "make install".

This is what I'm doing, actually; after running 'make' normally to
build the package, I run (from debian/rules, i haven't modifed it yet)

        # Add here commands to install the package into debian/tmp.
	$(MAKE) install prefix=`pwd`/debian/tmp/usr

> prefix can affect the program at runtime too. You don't want to hardcode
> the temporary location into any executables.
		
I don't think this will cause problems with the binary, since $prefix
is not changed during the first run of make, I get
-DICONDIR=\"/usr/share/icons\" and so on when calling gcc. the
'install' rule just includes making directories, copying files, etc.
Am I correct? for now, I'll patch Makefile.in to use '${prefix}'
instead of '@prefix@'.

-- 
Debian GNU/Linux - http://www.debian.org/
The Web is to graphic design as the fax machine is to literature.


Reply to: