Sponsored Content
Full Discussion: AutoConf,-Make
Top Forums UNIX for Advanced & Expert Users AutoConf,-Make Post 302948439 by sea on Monday 29th of June 2015 06:25:19 PM
Old 06-29-2015
Err... follow up question:

When i add: 'bin' to 'subdirs', and write: bin/Makefile.am
Code:
bin_SCRIPT = tui tui-asroot

It fails like:
Code:
automake --add-missing && autoconf && ./configure && make
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
Making all in bin
make[1]: Entering directory '/home/sea/prjs/tui/bin'
make[1]: *** No rule to make target 'all'.  Stop.
make[1]: Leaving directory '/home/sea/prjs/tui/bin'
Makefile:371: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

What am i making wrong?

---------- Post updated 30-06-15 at 00:19 ---------- Previous update was 29-06-15 at 22:50 ----------

Uhh, for a second i though it was the typo...
But it isnt.

Wether i use bin_SCRIPT or bin_SCRIPTS, fails the same.
Makefile.am's (bin/Makefile.am is marked bold)
Code:
cat M*am {bin,docs}/M*am

AUTOMAKE_OPTIONS = foreign
SUBDIRS = docs bin

compldir = $(datadir)/bash-completion/completions
compl_DATA = @PACKAGE_TARNAME@_compl.bash

bin_SCRIPTS = tui-asroot
doc_DATA = LICENSE

Output:
Code:
automake --add-missing && autoconf && ./configure && make
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
Making all in docs
make[1]: Entering directory '/home/sea/prjs/tui/docs'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/sea/prjs/tui/docs'
Making all in bin
make[1]: Entering directory '/home/sea/prjs/tui/bin'
make[1]: *** No rule to make target 'all'.  Stop.
make[1]: Leaving directory '/home/sea/prjs/tui/bin'
Makefile:371: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

This doesnt make ANY sense at all!
The content of bin/Makefile.am is 'just the same' as docs/Makefile.am.

Anyone able to enlighten me on this please?

---------- Post updated at 00:25 ---------- Previous update was at 00:19 ----------

gnh.. new tools, new rules, and new things to forget..
Me asociated configure.ac to autoconf, which i 'could skip', so me forgot that just that file requires the Makefile.am to be listed so automake is working...

/solved again
 

4 More Discussions You Might Find Interesting

1. Programming

automake/autoconf problem

hi, i'm fairly new with automake and i ran into a problem that i have found no solution for. so i have a setup where i don't want all the output files generated by the compiler and alike in my src directory, instead i created a build/unix folder and i have build/unix/config set for... (0 Replies)
Discussion started by: Akimaki
0 Replies

2. BSD

You have another version of autoconf...

Hi gurus, I'm a FreeBSD noob who has generated an error, searched everywhere for solutions, and has just joined this forum (and searched it) hoping you can help. I really need to get mysql server installed again ASAP, and preferably with Sphinx as a storage engine, or my web app in dev is... (2 Replies)
Discussion started by: userunx
2 Replies

3. Shell Programming and Scripting

using automake and autoconf with C++

hi, I have written the Makefile.am and autoconf.ac files and am looking to build my project by providing the following commands: $autoreconf -f -i -m $./configure both of the above work fine, but when I give the make command, I get the following error: make all-am make: Entering directory... (0 Replies)
Discussion started by: bacpp
0 Replies

4. Programming

Using autoconf and automake. aclocal-1.11: command not found

Hi, I'm trying to make my source "buildable". autoconf and automake tools are used. configure and Makefile.in files are created successfully. configure.ac: AC_INIT() AC_CONFIG_SRCDIR() AC_PROG_CXX AM_INIT_AUTOMAKE(main, 0.1) AC_CHECK_HEADERS()... (0 Replies)
Discussion started by: Vourhey
0 Replies
All times are GMT -4. The time now is 01:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy