#2 Support for the DESTDIR variable in install rules

closed-accepted
None
5
2003-05-05
2003-04-27
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

  • Andreas Voegele

    Andreas Voegele - 2003-04-27

    Patch that adds DESTDIR to Makefile.in

     
  • Andreas Voegele

    Andreas Voegele - 2003-04-27

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

     
  • Andreas Voegele

    Andreas Voegele - 2003-04-27

    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) ...

     
  • Andreas Voegele

    Andreas Voegele - 2003-04-29

    Logged In: YES
    user_id=32698

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

     
  • Andreas Voegele

    Andreas Voegele - 2003-05-04

    Logged In: YES
    user_id=32698

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

     
  • Martin Gasbichler

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

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks