T
T
Tesla4o2019-01-09 11:54:37
C++ / C#
Tesla4o, 2019-01-09 11:54:37

How to set up make install for a project?

There is a project, I created a make file using the autotools utility. everything turned out except for the make install setting. when you enter this command, it installs only the executable file in the desired directory. but there should still be additional folders with configs and pictures. how to make it pick them up too and install along with the binary? Googled a lot but didn't find what I needed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2019-01-09
@Tesla4o

created a makefile using the autotools utility. everything turned out except for the make install setting.

Read the install and the uiform naming scheme chapters of the automake manual
If they fit into the file system usage standard, then add them to data_DATA. If they do not fit -- add your own rule install-data-local.

M
MechanicZelenyy, 2019-01-09
@MechanicZelenyy

If the project is in c++, then it's better to use cmake and configure the installation settings in it. And it will generate the necessary makefile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question