Menu

building/installing with make: PREFIX and DESTDIR

2015-01-03
2015-04-22
  • João M. S. Silva

    Hi, I'm building/installing on Linux with make. How do I use DESTDIR/PREFIX?

    PREFIX does not work like ./configure --prefix, since the .cfg files are not correctly installed:

    install: ‘cfg/avr.cfg’ and ‘cfg/avr.cfg’ are the same file

    Thanks.

     

    Last edit: João M. S. Silva 2015-01-03
  • Darren Smith

    Darren Smith - 2015-01-04

    This is what I do, to install it under my own /opt :

    make PREFIX=/opt/cppcheck-1.68 CFGDIR=/opt/cppcheck-1.68/cfg HAVE_RULES=yes
    make PREFIX=/opt/cppcheck-1.68 CFGDIR=/opt/cppcheck-1.68/cfg HAVE_RULES=yes install

     
  • João M. S. Silva

    I think that worked. I don't know exactly why but I had the idea that CFGDIR was to indicate source .cfg files (not destination ones).

    Thanks.

     

    Last edit: João M. S. Silva 2015-01-05
  • SMSJey

    SMSJey - 2015-04-22

    My machine has SunOS 5.10 - Generic_142900-15 sun4u sparc SUNW,SPARC-Enterprise

    "make PREFIX=/nfs/home02/sxxj1/CCache/cppcheck-1.68 CFGDIR=/nfs/home02/sxxj1/CCache/cppcheck-1.68/cfg HAVE_RULES=yes"

    This command provides the following error message,

    make: Fatal error in reader: Makefile, line 5: Unexpected end of line seen

    When I use gmake or g++, so many errors are displayed as

    "lib/tokenize.h:29: map.h: No such file or directory
    lib/tokenize.h:30: list.h: No such file or directory
    lib/tokenize.h:31: ctime.h: No such file or directory
    .
    .
    ."

    Anyone please assist, what is the actual issue and how can I instlal cppcheckon SunOS..?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.