dovecot: Generate also rquota_xdr.h.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 17 11:29:14 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/92bce6a3fdad
changeset: 6437:92bce6a3fdad
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 17 11:29:08 2007 +0300
description:
Generate also rquota_xdr.h.
diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
.hgignore | 1 +
src/plugins/quota/Makefile.am | 9 +++++++--
diffs (29 lines):
diff -r fd7ffed49763 -r 92bce6a3fdad .hgignore
--- a/.hgignore Mon Sep 17 11:15:50 2007 +0300
+++ b/.hgignore Mon Sep 17 11:29:08 2007 +0300
@@ -74,3 +74,4 @@ src/util/logview
src/util/logview
src/util/rawlog
src/plugins/quota/rquota_xdr.c
+src/plugins/quota/rquota_xdr.h
diff -r fd7ffed49763 -r 92bce6a3fdad src/plugins/quota/Makefile.am
--- a/src/plugins/quota/Makefile.am Mon Sep 17 11:15:50 2007 +0300
+++ b/src/plugins/quota/Makefile.am Mon Sep 17 11:29:08 2007 +0300
@@ -31,10 +31,15 @@ lib10_quota_plugin_la_DEPENDENCIES = \
lib10_quota_plugin_la_DEPENDENCIES = \
rquota_xdr.c
-rquota_xdr.c: Makefile
- $(RPCGEN) -c /usr/include/rpcsvc/rquota.x | \
+RQUOTA_X = /usr/include/rpcsvc/rquota.x
+rquota_xdr.c: Makefile rquota_xdr.h $(RQUOTA_X)
+ $(RPCGEN) -c $(RQUOTA_X) | \
sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \
-e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' > rquota_xdr.c
+
+# BSD rpcgen wants to include the .h from current directory, so generate it
+rquota_xdr.h:
+ $(RPCGEN) -h $(RQUOTA_X) > rquota_xdr.h
endif
noinst_HEADERS = \
More information about the dovecot-cvs
mailing list