Code Monkey home page Code Monkey logo

Comments (10)

VinGarcia avatar VinGarcia commented on May 30, 2024

It would suffice to copy the headers there? Maybe something on the Makefile like:

install:
    cp *.h $INCPATH/include/

So you could use it like:

make install INCPATH=/some/path

from cparse.

yurivict avatar yurivict commented on May 30, 2024

It should be

mkdir $DESTDIR$PREFIX/include/cparse
cp *.h $DESTDIR$PREFIX/include/cparse/

from cparse.

VinGarcia avatar VinGarcia commented on May 30, 2024

Ok, but why do we need two variables for the path?

from cparse.

VinGarcia avatar VinGarcia commented on May 30, 2024

Also, should we add a mkdir -p so no errors are raised if the directory already exists or if any directory on the path also needs to be created?

from cparse.

yurivict avatar yurivict commented on May 30, 2024

Yes, add -p. There are no 2 variants. $DESTDIR$PREFIX/include/cparse/ is the expected path.

from cparse.

VinGarcia avatar VinGarcia commented on May 30, 2024

Ok, I need a reason for the 2 variables, I am sure you have one, but you'll have to explain to me why this is the expected path.

from cparse.

yurivict avatar yurivict commented on May 30, 2024

$DESTDIR is for staged builds, $PREFIX is a standard path of install prefix.

from cparse.

VinGarcia avatar VinGarcia commented on May 30, 2024

Ok, but according to whom, is this an universal C++ pattern? Why do I need this complexity, because from what I see having 2 variables would just make the script more complicated, I need a justification for this extra complexity or I won't do it.

from cparse.

yurivict avatar yurivict commented on May 30, 2024

This is a universal set of variables used in all projects based on GNU Make.

from cparse.

VinGarcia avatar VinGarcia commented on May 30, 2024

That's cool, I will read about it and get back to you

from cparse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.