#2 Support for the DESTDIR variable in install rules

closed-accepted
None
5
2003-05-05
2003-04-27
Andreas Voegele
No

Makefiles created with recent versions of automake
support the variable DESTDIR in all install rules.
DESTDIR simplifies the creation of binary packages,
e.g. RPMs, by allowing for the installation in a
temporary staging area:

sh configure --prefix /usr
make
make DESTDIR=/tmp/staging install

I use the attached patch to add DESTDIR support to
scsc-0.6.4/Makefile.in. Since the Makefile.in file in the
CVS has not changed since the last release the patch
can also be applied to the current CVS version.

I have tested the scsh built with this patch for two days
on my computer and everything seems to work fine.
Since DESTDIR is empty by default the patch does not
alter the normal functionality of the Makefile.

Discussion

  • Patch that adds DESTDIR to Makefile.in

     
    Attachments
  • Patch that adds DESTDIR to scsh-0.6.4/Makefile.in

     
    Attachments
  • Logged In: YES
    user_id=32698

    Sorry, by mistake I've uploaded an older version of the patch. Please use the second version with the description
    "Patch that adds DESTDIR to scsh-0.6.4/Makefile.in". There is one
    difference between the patches:

    inst-man:
    - if [ -d $(mandir) -a -w $(mandir) ]; then
    + if [ -d $(DESTDIR)$(mandir) -a -w $(DESTDIR) ...

     
  • Logged In: YES
    user_id=32698

    I've uploaded a patch suitable for revision 1.62 of Makefile.in.

     
  • Patch for revision 1.62 of Makefile.in

     
  • Logged In: YES
    user_id=32698

    I've uploaded a patch suitable for revision 1.66 of Makefile.in.

     
  • Patch suitable for revision 1.62 of Makefile.in

     
    • assigned_to: nobody --> mainzelm
    • status: open --> closed-accepted