From 30fac06891c59a7fb784f6faa4e92921a84c73db Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Sat, 10 Nov 2012 17:29:53 +0100
Subject: [PATCH] Automatically generate XDR header files from .x sources
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
tirpc/rpc/rpcb_prot.h | 797 -------------------------------------------------
tirpc/rpcsvc/crypt.h | 109 -------
4 files changed, 21 insertions(+), 910 deletions(-)
delete mode 100644 tirpc/rpc/rpcb_prot.h
delete mode 100644 tirpc/rpcsvc/crypt.h
diff --git a/Makefile.am b/Makefile.am
index afb4e38..7e63f78 100644
SUBDIRS = src man doc rpcgen
nobase_include_HEADERS = tirpc/netconfig.h \
@@ -15,7 +18,6 @@ nobase_include_HEADERS = tirpc/netconfig.h \
- tirpc/rpc/rpcb_prot.h \
@@ -32,6 +34,21 @@ nobase_include_HEADERS = tirpc/netconfig.h \
+nobase_nodist_include_HEADERS = $(GENFILES)
+BUILT_SOURCES = $(GENFILES)
pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA = libtirpc.pc
+$(GENFILES): %.h: %.x $(top_builddir)/rpcgen/rpcgen
+ $(top_builddir)/rpcgen/rpcgen -h -o $@ $<
+$(top_builddir)/rpcgen/rpcgen: force