automake
[Top][All Lists]
Advanced

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

rpcgen messing with dependencies


From: Thomas 'Tom' R. Treadway III
Subject: rpcgen messing with dependencies
Date: Fri, 2 Jun 2006 14:47:35 -0700

I have a directory where I'm trying to create a library, containing a rpcgen generated file. I can't seem to construct the Makefile.am so that VPATH, and distclean work.

For some reason the dependency check of sdxproto.c fails because it assumes sdxproto.h
is in $(srcdir), nor $(builddir).

Makefile.am in question:
noinst_LTLIBRARIES = libsdx.la
libsdx_la_SOURCES = $(FILES)
nodist_libsdx_la_SOURCES = sdxproto.c

EXTRA_DIST = \
sdxproto.x

include_HEADERS = \
sdx.h
nodist_include_HEADERS = \
sdx.inc \
sdxproto.h

FILES = \
sdx_server.c \
sdxproto.h

BUILT_SOURCES = \
sdx.inc \
sdxproto.h \
sdxproto.c
CLEANFILES = \
sdx.inc \
sdxproto.h \
sdxproto.c

sdx.inc: Makefile
        cat $(srcdir)/sdx.h $(top_srcdir)/config/mkinc > $@

sdxproto.h: Makefil
        rpcgen -h $(srcdir)/sdxproto.x > $@

sdxproto.c: sdxproto.h
        rpcgen -c $(srcdir)/sdxproto.x > $@


    trt





reply via email to

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