Hi
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:
Makefile.am
Quote:
bin_PROGRAMS = app
AM_CXXFLAGS = $(INTI_CFLAGS)
app_SOURCES = app.cc
app_LDADD = $(INTI_LIBS)
|
configure.in
Quote:
AC_INIT(app.cc)
PACKAGE=test
VERSION=1.0
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AC_SUBST(INTI_CFLAGS)
AC_SUBST(INTI_LIBS)
AC_PROG_CXX
AC_OUTPUT(Makefile Makefile)
|
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