Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6437:92bce6a3fdad HEAD
Generate also rquota_xdr.h.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 17 Sep 2007 11:29:08 +0300 |
parents | fd7ffed49763 |
children | 2ab3cb6af745 |
files | .hgignore src/plugins/quota/Makefile.am |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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/rawlog src/plugins/quota/rquota_xdr.c +src/plugins/quota/rquota_xdr.h
--- 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 = \ 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 = \