Heyas
I'm trying to rewrite the install procedure of TUI, applying the standards of the Autotools.
Inofficial:
- unix - Why always ./configure; make; make install; as 3 seperate steps? - Stack Overflow
- autoconf automake tutorial
Official:
Which is quite too much to comprehend, without practical (as in: daily usage) knowledge about compiling things, applying to a project that doesnt need compiling.
It feels that the auto-tools dont work properly on a project that doesnt require compiling.
Doing the regular starting steps:
$ cat gen-autoconf.sh ; sh ./gen-autoconf.sh
#!/bin/bash
autoscan
mv configure.scan configure.ac && vi configure.ac || exit
[ -f Makefile.in ] || exit 1
autoconf
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE [^\}]*}/ at /usr/bin/autoscan line 361.
configure.ac: warning: missing AC_PROG_AWK wanted by: build-rpm-tui.sh:54
configure.ac: warning: missing AC_PROG_CC wanted by: stats.sh:41
configure.ac: warning: missing AC_PROG_INSTALL wanted by: my-configure.sh:381
configure.ac: warning: missing AC_PROG_LN_S wanted by: build-rpm-tui.sh:63
configure.ac: warning: missing AC_PROG_MAKE_SET wanted by: docs/samples/old/demo-interface-select-loop.sh:66
(however, these errors are new)
While the generate configure.ac looks like:
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AC_CONFIG_SRCDIR([build-aux/link-warning.h])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile
bin/Makefile
conf.etc/Makefile
conf.home/Makefile
docs/Makefile
lists/Makefile
man/Makefile
templates/Makefile
themes/Makefile])
AC_CONFIG_SUBDIRS([tmp])
AC_OUTPUT
Eventhough, the generating of them worked - as in no errors shown, at some earlier time, i cant seem to get it back there.
What remains identical is this:
make
make: *** No targets specified and no makefile found. Stop.
Currently only testing with the README.md
$ find ./ -name Makefile.am
./conf.etc/Makefile.am
./docs/Makefile.am
./templates/Makefile.am
./conf.home/Makefile.am
./tmp/autoconf/Makefile.am
./Makefile.am
./lists/Makefile.am
./man/Makefile.am
./bin/Makefile.am
$ cat Makefile.am
AUTOMAKE_OPTIONS = foreign
SUBDIRS = docs
compldir = /usr/local/share/bash-completion/completions
compl_DATA = tui_compl.bash
$ cat docs/Makefile.am
doc_DATA = README.md
Any advices please?
Thank you