This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SUFFIXES


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
moseley@hank.org




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]