automake
[Top][All Lists]
Advanced

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

SUFFIXES


From: Bill Moseley
Subject: SUFFIXES
Date: Wed, 14 May 2003 22:45:20 -0700
User-agent: Mutt/1.5.3i

I can't seem to figure out how to use implicit rules.  I tried:

SUFFIXES = .1 .pod

.pod.1:
        -rm -f $@
        -pod2man --center="SWISH-E Documentation" --lax --release='$(VERSION)'  
$<  > $@

but it always reports:

make: *** No rule to make target `../../swish-e/man/SWISH-CONFIG.1', needed by 
`all-am'.  Stop.


This is what I'm currently using.  I'm specifying $(srcdir) here so that I can 
build outside 
of the distribution directory on non-GNU makes (like on FreeBSD).  But I also 
tried without 
$(srcdir) and still couldn't get it to work.

Makefile.am
-----------


if BUILDDOCS

man_MANS = \
    $(srcdir)/SWISH-CONFIG.1 \
    $(srcdir)/SWISH-FAQ.1 \
    $(srcdir)/SWISH-LIBRARY.1 \
    $(srcdir)/SWISH-RUN.1

endif


$(srcdir)/SWISH-CONFIG.1 : $(top_srcdir)/pod/SWISH-CONFIG.pod
        -rm -f $@
        -pod2man --center="SWISH-E Documentation" --lax --release='$(VERSION)'  
$<  > $@

$(srcdir)/SWISH-FAQ.1 : $(top_srcdir)/pod/SWISH-FAQ.pod
        -rm -f $@
        -pod2man --center="SWISH-E Documentation" --lax --release='$(VERSION)'  
$<  > $@

$(srcdir)/SWISH-LIBRARY.1 : $(top_srcdir)/pod/SWISH-LIBRARY.pod
        -rm -f $@
        -pod2man --center="SWISH-E Documentation" --lax --release='$(VERSION)'  
$<  > $@

$(srcdir)/SWISH-RUN.1 : $(top_srcdir)/pod/SWISH-RUN.pod
        -rm -f $@
        -pod2man --center="SWISH-E Documentation" --lax --release='$(VERSION)'  
$<  > $@


EXTRA_DIST = $(man_MANS)



-- 
Bill Moseley
address@hidden





reply via email to

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