automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Source files in different directory? .pdf depends on a .doc file.


From: Paul Elliott
Subject: Re: Source files in different directory? .pdf depends on a .doc file.
Date: Thu, 21 Jul 2011 21:59:03 -0500
User-agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.6.2; i686; ; )

Makefile.am to create documentation.
> .pdf.doc:
>         unoconv --listener &
#some times first unoconv does not work. not repeatable.
>         unoconv --stdout -f pdf $<   >  $@ ||{sleep2 ;unoconv --stdout -f pdf 
> $<   >  $@ }
> 
> .html.doc:
>         unoconv --listener &
>         unoconv --stdout -f html $<   >  $@ ||{sleep2 ;unoconv --stdout -f 
> html $<   >  $@ }
> 
> html_DATA = swephprg.html  swisseph.html
> pdf_DATA = swephprg.pdf   swisseph.pdf
> 
> swephprg_html_SOURCES = $(docsrc)/swephprg.doc
> 
> swisseph_html_SOURCES = $(docsrc)/swisseph.doc
> 
> 
> swephprg_pdf_SOURCES = $(docsrc)/swephprg.doc
> 
> swisseph_pdf_SOURCES = $(docsrc)/swisseph.doc

In the above I have defined a rule for creating a .pdf from a .doc

Now I want to say that in particular swephprg.html  depends on 
$(docsrc)/swephprg.doc in particular.

I am using 
> swephprg_html_SOURCES = $(docsrc)/swephprg.doc

to do this. But automake is saying
> doc/Makefile.am:16: variable `swephprg_html_SOURCES' is defined but no
> program or doc/Makefile.am:16: library has `swephprg_html' as canonical
> name (possible typo)

What does this mean? What is the proper way to say that swephprg.html  depends 
on $(docsrc)/swephprg.doc?

Thank You.

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]