I have a tiny HelloWorld like app written in C++. Let's call it app.cc
The app will be using firing a few perl scripts and save data to paricular folder locations. Additionaly, basing on given parameters during installation, it should generate same files consisting of those params.
My files look like these:
bin_PROGRAMS = app
AM_CXXFLAGS = $(INTI_CFLAGS)
app_SOURCES = app.cc
app_LDADD = $(INTI_LIBS)
What I need o achieve
1. Currently when giving ./configure --prefix /var/test the whole process generates additional dir app inside /var/test/bin/app - I need it to be /var/test/app
2. What commands and where should I put them to make the scripts copy/create dirs given by params to configure or make.
3. How can I make scripts automatically create files basing on passed params.
Thanks in advance for any help given