bug-automake
[Top][All Lists]
Advanced

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

Conditional targets?


From: Simon Josefsson
Subject: Conditional targets?
Date: Mon, 07 Jun 2004 17:18:19 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

My Makefile.am reads:

if JAVA
libidn_jardir = $(datadir)/java
dist_libidn_jar_DATA = address@hidden@.jar
...

install-data-local:
        ln -sf address@hidden@.jar $(libidn_jardir)/libidn.jar
...
endif

When the JAVA conditional is not defined, the generated Makefile look
like:

#install-data-local:
#       ln -sf libidn-0.4.9.jar $(libidn_jardir)/libidn.jar

which I believe is fine.  However, it also reads:

install-data-am: install-data-local install-dist_libidn_jarDATA

So I typically get an error like:

Making install in .
make: don't know how to make install-data-local. Stop

make: stopped in /tmp/jas/libidn-0.4.9/java
*** Error code 2

Are conditional targets supported?  The examples in the manual only
use variable definitions between if..endif, so perhaps the answer is
no.  OTOH, it would be useful if this worked.

Thanks,
Simon




reply via email to

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