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