Changing make install directory on Ubuntu when building from source

0

I'm building the source from a package called OIS.

The package always installs in usr/local/include/OIS

I tried using the ./configure --includedir=/usr/local/include flag but it seems that only changes the prefix not the suffix (OIS).

I could just copy the files but I'm not sure if this would break anything in the header files.

Can someone guide me where I could possibly edit so that when I run make install it would install in /usr/local/include and not /usr/local/include/OIS?

The reason I want to do this is because all the header files have "file.h" when in fact they're in "OIS/file.h". I would have to change this in all the header files so I want to change the install directory to avoid doing that, and in the future in case there's an update to the source.

Tek

Posted 2010-11-22T07:16:49.643

Reputation: 509

1Or you could just pass -I to the compiler like you're supposed to... – Ignacio Vazquez-Abrams – 2010-11-22T07:20:25.413

I'm sorry, I'm not familiar with the -I flag. Could you show me a link to the documentation so I can read more about it? – Tek – 2010-11-22T07:29:01.370

Why don't you just install it from the repository? – Paused until further notice. – 2010-11-22T07:32:31.787

1But normally the <package>-config script or <package>.pc file should direct the compiler as to what flags it should use. – Ignacio Vazquez-Abrams – 2010-11-22T07:32:55.830

@Dennis Installing libois-dev from repository still installs it in /usr/include/OIS – Tek – 2010-11-22T07:42:18.040

@Ignacio, can you post your package comments as an answer? It was the closest to the answer I was looking for. – Tek – 2010-11-22T08:28:02.933

Answers

1

Instead of specifying a different directory to install under as you ask, use the <package>-config script or <package>.pc pkgconfig data file to get the appropriate flags to pass to the compiler.

Ignacio Vazquez-Abrams

Posted 2010-11-22T07:16:49.643

Reputation: 100 516