Re: Omit dvi rule

2009-10-20 Thread Stefan Bienert
Splendid!

Thanks mate, this gives me exactly the behaviour I was seeking, while
exactly means E-X-A-C-T-L-Y.

I didn't favour a global change of rules but a local one...mission
accomplished!

I just feel a little bit dumb, because I searched the "Changing
Automakes behaviour" section by myself, before...and didn't get it.

kind regards,

Stefan

Ralf Wildenhues wrote:
> * Stefan Bienert wrote on Mon, Oct 19, 2009 at 02:06:40PM CEST:
>> cd ../.. && /bin/sh
>> /home/user/projects/documentation.git/share/misc/config/missing --run
>> automake-1.10 --gnu  share/doc/Makefile
>> share/doc/Makefile.am:76: user target `dvi' defined here...
>> automake-1.10: ... overrides Automake target `dvi' defined here
>> share/doc/Makefile.am:76: consider using dvi-local instead of dvi
> 
> This is not an error, merely a warning.  You can silence it with
>   AUTOMAKE_OPTIONS = -Wno-override
> 
>> I also tried dvi-local, but this does not work either!
> 
> That's expected: dvi-local exists to amend the dvi rule.
> 
> Cheers,
> Ralf
> 





Re: Omit dvi rule

2009-10-19 Thread Stefan Bienert
Ralf Wildenhues wrote:
> * Stefan Bienert wrote on Mon, Oct 19, 2009 at 12:45:19AM CEST:
>> Is there a way to stop automake producing a rule for dvi docs?
>> It just makes my 'distcheck' fail.
> 
> dvi:

This does not work:

cd ../.. && /bin/sh
/home/user/projects/documentation.git/share/misc/config/missing --run
automake-1.10 --gnu  share/doc/Makefile
share/doc/Makefile.am:76: user target `dvi' defined here...
automake-1.10: ... overrides Automake target `dvi' defined here
share/doc/Makefile.am:76: consider using dvi-local instead of dvi

I also tried dvi-local, but this does not work either!

kind regards,

Stefan

-- 
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: bien...@zbh.uni-hamburg.de
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332




Omit dvi rule

2009-10-18 Thread Stefan Bienert
Hi list!

Is there a way to stop automake producing a rule for dvi docs?
It just makes my 'distcheck' fail.

kind regards,

Stefan




Re: noinst_TEXINFOS

2009-04-30 Thread Stefan Bienert
Hi again!

Why do I want this? For the code documentation.
Conter question: What is the sense behind generalised code? :-P

If nobody starts fixing this problem before I get the time, I will
notify you again and try myself. But currently there is not a single
chance of working on it for me.

greetings,

Stefan

-- 
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: bien...@zbh.uni-hamburg.de
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332




noinst_TEXINFOS

2009-04-29 Thread Stefan Bienert

Hi List!

Could it be that a primary

noinst_TEXINFOS

does not work with automake 1.10.2?

I tried to use it in my project but nothin gets build on "make".

greetings,

Stefan




Texinfo, version.texi

2008-12-04 Thread Stefan Bienert

Hi Automakers!

I have a little problem with Automake maintaining the version.texi file.
My Makefile.am looks like this:
info_TEXINFOS = developer-handbook.txi

developer_handbook_TEXINFOS =  impatient.txi   \
   preface_dvl.txi \
   coding.txi  \
   indeces.txi \
   fdl_wrapper.txi

And developer-handbook.txi incldues version-devel.texi. But the version 
file only gets updated on changes in developer-handbook.txi, not on 
changes in its dependencies.


Does anyone know, how to extend the dependencies for the version file to 
all include files of the main texinfo file?


greetings,

Stefan




Re: Treat pdf, html like info

2008-11-08 Thread Stefan Bienert
Argh! I really hate this konqueror of KDE!
With putting the pdf and html documentation into EXTRA_DIST everything 
works fine. It's just this mean konqueror file browser which does not show 
the archive properly.
Sorry to have disturbed the list with this problem.

greetings,

Stefan




Re: Treat pdf, html like info

2008-11-08 Thread Stefan Bienert
Hi again,

now I want to have something eles with the documentation stuff. How do I 
include the compiled pdf and html docs in the distribution. I tried 
EXTRA_DIST with the name of the pdf file but it does not work. Should I 
use the dist-hook for this or is there a common way?

greetings,

Stefan




Re: Treat pdf, html like info

2008-11-08 Thread Stefan Bienert
Thanks a lot!
Everything works fine and this in less than 5minutes work! Seems like a 
new record in automake-configuration to me.

greetings,

Stefan




Treat pdf, html like info

2008-11-07 Thread Stefan Bienert
Hi there,

is there an easy way to traet pdf, html in the same way info targets are 
treated?
I would like to have `make all` producing info, pdf and html docs from 
texinfo sources. Also installation of all three targets should happen on 
`make install`.

greetings,

Stefan




Report to stdout like Linux kernel compilation does

2008-04-11 Thread Stefan Bienert

Hi automakers,

probably this is an oftne asked and therefore annoying question ... but 
is there a simple way to get automake to produce a similar output as the 
Linux kernel makefiles?
Instead of this verbose confusing output like automake makefiles, the 
kernels make produces something like

[ compile object1 ]
[ compile object2 ]
...
[ building module ]

and so on.
For me it would be nice to have something like a switch in the configure 
script to enable/ disbale verbose/ minimalistic information. E.g. first 
try with min. info, run into an error, therefore rerun with extensive 
info, search for the min. statemnt on which the error occured and voila!

Like this:
./configure --disable-verbose
make
[ compile object1 ]
[ compile object2 ]
error on building object 2!

./configure
make | grep
[ compile object1 ]
if gcc ... and so on
[ compile object2 ]
if gcc ... and so on
error...

I hope somebody can understand what I want to do.

greetings,

Stefan

--
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: [EMAIL PROTECTED]
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332




-lm -lz

2008-03-06 Thread Stefan Bienert

Hello,

after an hour of searching, how am I supposed to invoke "-lm -lz" into 
my compilation? The documentation states something about using "LIBS" as 
a variable, autoconf also speaks of "LIBS" but nobody tells one what to 
do with that variable.


greetings,

Stefan

--
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: [EMAIL PROTECTED]
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332




Re: [solved] Problems with headers and subdirectories

2008-02-28 Thread Stefan Bienert

Hi again,

I just wanted to note that I fixed my problem. It seems as if I messed 
up the noinst_ prefixes throughout my project. If everything is set 
properly, it works.


greetings,

Stefan


--
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: [EMAIL PROTECTED]
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332




Re: Problems with headers and subdirectories

2008-02-28 Thread Stefan Bienert

Hi,

I found a queer thing with those noinst_HEADERS.
I just had a look at the Makefile produced:

line 49: DIST_COMMON = README $(noinst_HEADERS) $(srcdir)/Makefile.am...

line 83: HEADERS = $(noinst_HEADERS)

line 184: noinst_HEADERS = header1.h header2.h

and after this, noinst_HEADERS is not used anymore. Should'nt 
noinst_HEADERS be set before line 49?


I am using automake 1.9.6

regards,

Stefan

--
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: [EMAIL PROTECTED]
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332




Re: Problems with headers and subdirectories

2008-02-27 Thread Stefan Bienert
Hello again,

my sourcetree looks like this
projectdir/
  src/
source1.c
source2.c
header1.h
liba/
source3.c
header2.h
libb/
...

The Makefile.am for the src/ dir looks like
  
noinst_HEADERS = header1.h

SUBDIRS = liba libb

LDADD =   \
liba/liba.a \
libb/libb.a

bin_PROGRAMS = app
app_SOURCES = \
source1.c \
source2.c

The Makefile.am for the library dirs is

lib_LIBRARIES = librtbbasic.a

librtbbasic_adir = $(includedir)/librtbbasic

librtbbasic_a_SOURCES = \
memmgr.c\
mprintf.c   \
errormsg.c  \
argvprsr.c  \
str.c

librtbbasic_a_HEADERS = \
memmgr.h\
mprintf.h   \
errormsg.h  \
inc_strg.h  \
inc_pthr.h  \
inc_bool.h  \
gcckywrd.h  \
argvprsr.h  \
str.h


# tests for the library
LDADD = librtbbasic.a

check_PROGRAMS =  \
test_mprintf  \
test_errormsg \
test_memmgr   \
test_argvprsr \
test_str

test_memmgr_SOURCES   = test_memmgr.c

test_mprintf_SOURCES  = test_mprintf.c

test_errormsg_SOURCES = test_errormsg.c

test_argvprsr_SOURCES = test_argvprsr.c

test_str_SOURCES  = test_str.c

# add test for correct failing of functions?

TESTS = $(check_PROGRAMS)

In the end, only the binary & manuals should be installed, no libraries.

Now for the complete distcheck output:

> make distcheck
{ test ! -d phd-0.1 || { find phd-0.1 -type d ! -perm -200 -exec chmod u+w 
{} ';' && rm -fr phd-0.1; }; }
test -d phd-0.1 || mkdir phd-0.1
list='src share '; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
test -d "phd-0.1/$subdir" \
|| /bin/mkdir -p "phd-0.1/$subdir" \
|| exit 1; \
distdir=`CDPATH="${ZSH_VERSION+.}:" && cd phd-0.1 && pwd`; \
top_distdir=`CDPATH="${ZSH_VERSION+.}:" && cd phd-0.1 && pwd`; 
\
(cd $subdir && \
  make  \
top_distdir="$top_distdir" \
distdir="$distdir/$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
  || exit 1; \
  fi; \
done
make[1]: Entering directory `/home/zbh/projects/phd/recode/usr/src'
list='librtbfallback librtbbasic'; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
test -d 
"/home/zbh/projects/phd/recode/usr/phd-0.1/src/$subdir" \
|| /bin/mkdir -p 
"/home/zbh/projects/phd/recode/usr/phd-0.1/src/$subdir" \
|| exit 1; \
distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/zbh/projects/phd/recode/usr/phd-0.1/src && pwd`; \
top_distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/zbh/projects/phd/recode/usr/phd-0.1 && pwd`; \
(cd $subdir && \
  make  \
top_distdir="$top_distdir" \
distdir="$distdir/$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
  || exit 1; \
  fi; \
done
make[2]: Entering directory 
`/home/zbh/projects/phd/recode/usr/src/librtbfallback'
make[2]: Leaving directory 
`/home/zbh/projects/phd/recode/usr/src/librtbfallback'
make[2]: Entering directory 
`/home/zbh/projects/phd/recode/usr/src/librtbbasic'
make[2]: Leaving directory 
`/home/zbh/projects/phd/recode/usr/src/librtbbasic'
make[1]: Leaving directory `/home/zbh/projects/phd/recode/usr/src'
make[1]: Entering directory `/home/zbh/projects/phd/recode/usr/share'
list='misc '; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
test -d 
"/home/zbh/projects/phd/recode/usr/phd-0.1/share/$subdir" \
|| /bin/mkdir -p 
"/home/zbh/projects/phd/recode/usr/phd-0.1/share/$subdir" \
|| exit 1; \
distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/zbh/projects/phd/recode/usr/phd-0.1/share && pwd`; \
top_distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/zbh/projects/phd/recode/usr/phd-0.1 && pwd`; \
(cd $subdir && \
  make  \
top_distdir="$top_distdir" \
distdir="$distdir/$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
  || exit 1; \
  fi; \
done
make[2]: Entering directory `/home/zbh/projects/phd/recode/usr/share/misc'
list='emacs'; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
test -d 
"/home/zbh/projects/phd/recode/usr/phd-0.1/share/misc/$subdir" \
|| /bin/mkdir -p 
"/home/zbh/projects/phd/recode/usr/phd-0.1/share/misc/$subdir" \
|| exit 1; \
distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/zbh/projects/phd/recode/usr/phd-0.1/share/misc && pwd`; \
top_dist

Problems with headers and subdirectories

2008-02-27 Thread Stefan Bienert

Hello there,

I have a simple task:

Srcdirectory with several subdirectories. Some of the subdirs are 
including headers from directories one level up. Therefore I just wrote 
several Makefile.am's, one for each directory. How do I treat the 
headers which in the higher directory levels? I tried something like


librtbbasic_adir = $(includedir)/librtbbasic
librtbbasic_a_HEADERS = ../memmgr.h

or

librtbbasic_adir = $(includedir)/librtbbasic
librtbbasic_a_HEADERS = $(srcdir)/memmgr.h

or

librtbbasic_adir = $(includedir)/librtbbasic
librtbbasic_a_HEADERS = $(topsrcdir)/memmgr.h

but on each make distcheck, the header is not copied nor is an 
appropriate -I path set.


Help!

Stefan

--
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: [EMAIL PROTECTED]
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332




Re: Problems on make distcheck

2008-02-07 Thread Stefan Bienert

Thanks a lot, Ralf!

Now the distcheck is working! I just removed the EXTRA_DIST statements 
as you mentioned and everything runs fine and everything is in the 
distribution package as I expected. Without having to maintain this 
EXTRA_DIST Variable by yourself, automake is even easier to handle (btw, 
this should really be mentioned in the manual, which's current version 
gave me the impression that I have to put everything in the 
distributiopn by myself.).


with best regards,

Stefan


--
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: [EMAIL PROTECTED]
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332




Re: Problems on make distcheck

2008-02-03 Thread Stefan Bienert
Hi again,

> What is the Automake version you use?  What do you set for
> AC_CONFIG_AUXDIR, AC_CONFIG_MACRO_DIR in configure.ac?

I am using version 1.10 at home and version 1.9.6 at work. THe error 
occurs with both of them.

My settings:

AC_CONFIG_AUX_DIR([share/misc/config])
AC_CONFIG_MACRO_DIR([share/misc/m4])

greetings,

Stefan 




Re: Problems on make distcheck

2008-02-03 Thread Stefan Bienert
Hi there,

the output of make distcheck is attached to this mail.

greetings,

Stefan{ test ! -d prj-0.1 || { find prj-0.1 -type d ! -perm -200 -exec chmod u+w {} 
';' && rm -fr prj-0.1; }; }
test -d prj-0.1 || mkdir prj-0.1
list='src share '; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
test -d "prj-0.1/$subdir" \
|| /bin/mkdir -p "prj-0.1/$subdir" \
|| exit 1; \
distdir=`CDPATH="${ZSH_VERSION+.}:" && cd prj-0.1 && pwd`; \
top_distdir=`CDPATH="${ZSH_VERSION+.}:" && cd prj-0.1 && pwd`; \
(cd $subdir && \
  make  \
top_distdir="$top_distdir" \
distdir="$distdir/$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
  || exit 1; \
  fi; \
done
make[1]: Entering directory `/home/foo/bar/usr/src'
list='librtbfallback librtbbasic'; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
test -d "/home/foo/bar/usr/prj-0.1/src/$subdir" \
|| /bin/mkdir -p "/home/foo/bar/usr/prj-0.1/src/$subdir" \
|| exit 1; \
distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/foo/bar/usr/prj-0.1/src && pwd`; \
top_distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/foo/bar/usr/prj-0.1 && pwd`; \
(cd $subdir && \
  make  \
top_distdir="$top_distdir" \
distdir="$distdir/$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
  || exit 1; \
  fi; \
done
make[2]: Entering directory `/home/foo/bar/usr/src/librtbfallback'
make[2]: Leaving directory `/home/foo/bar/usr/src/librtbfallback'
make[2]: Entering directory `/home/foo/bar/usr/src/librtbbasic'
make[2]: Leaving directory `/home/foo/bar/usr/src/librtbbasic'
make[1]: Leaving directory `/home/foo/bar/usr/src'
make[1]: Entering directory `/home/foo/bar/usr/share'
list='misc '; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
test -d "/home/foo/bar/usr/prj-0.1/share/$subdir" \
|| /bin/mkdir -p "/home/foo/bar/usr/prj-0.1/share/$subdir" \
|| exit 1; \
distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/foo/bar/usr/prj-0.1/share && pwd`; \
top_distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/foo/bar/usr/prj-0.1 && pwd`; \
(cd $subdir && \
  make  \
top_distdir="$top_distdir" \
distdir="$distdir/$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
  || exit 1; \
  fi; \
done
make[2]: Entering directory `/home/foo/bar/usr/share/misc'
list='emacs'; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
test -d "/home/foo/bar/usr/prj-0.1/share/misc/$subdir" \
|| /bin/mkdir -p "/home/foo/bar/usr/prj-0.1/share/misc/$subdir" \
|| exit 1; \
distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/foo/bar/usr/prj-0.1/share/misc && pwd`; \
top_distdir=`CDPATH="${ZSH_VERSION+.}:" && cd 
/home/foo/bar/usr/prj-0.1 && pwd`; \
(cd $subdir && \
  make  \
top_distdir="$top_distdir" \
distdir="$distdir/$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
  || exit 1; \
  fi; \
done
make[3]: Entering directory `/home/foo/bar/usr/share/misc/emacs'
make[3]: Leaving directory `/home/foo/bar/usr/share/misc/emacs'
make[2]: Leaving directory `/home/foo/bar/usr/share/misc'
make[1]: Leaving directory `/home/foo/bar/usr/share'
find prj-0.1 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  ! -type d ! -perm -444 -exec /bin/sh 
/home/foo/bar/usr/share/misc/config/install-sh -c -m a+r {} {} \; \
|| chmod -R a+r prj-0.1
tardir=prj-0.1 && /bin/sh /home/foo/bar/usr/share/misc/config/missing --run tar 
chof - "$tardir" | GZIP=--best gzip -c >prj-0.1.tar.gz
{ test ! -d prj-0.1 || { find prj-0.1 -type d ! -perm -200 -exec chmod u+w {} 
';' && rm -fr prj-0.1; }; }
case 'prj-0.1.tar.gz' in \
*.tar.gz*) \
  GZIP=--best gunzip -c prj-0.1.tar.gz | /bin/sh 
/home/foo/bar/usr/share/misc/config/missing --run tar xf - ;;\
*.tar.bz2*) \
  bunzip2 -c prj-0.1.tar.bz2 | /bin/sh 
/home/foo/bar/usr/share/misc/config/missing --run tar xf - ;;\
*.tar.Z*) \
  uncompress -c prj-0.1.tar.Z | /bin/sh 
/home/foo/bar/usr/share/misc/config/missing --run tar xf - ;;\
*.shar.gz*) \
  GZIP=--best gunzip -c prj-0.1.shar.gz | unshar ;;\
*.zip*) \
 

Problems on make distcheck

2008-01-31 Thread Stefan Bienert

Hello Automaker,

I have a problem on the distcheck target. Every time I use it, I end up 
with lots of the following messages:


cp: cannot create regular file `phd-0.1/share/misc/config/config.guess': 
Permission denied


What should I do about this? I found the documentation a "little" bit 
confusing at this point...


best regards,

Stefan

--
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: [EMAIL PROTECTED]
Phone:  +49 (40) 42838 7345
Fax:+49 (40) 42838 7332