summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/clients/Makefile.am17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/clients/Makefile.am b/tests/clients/Makefile.am
index dc1319a..d52f6c8 100644
--- a/tests/clients/Makefile.am
+++ b/tests/clients/Makefile.am
@@ -1,7 +1,22 @@
EXTRA_DIST = ypmaplist.py
AM_CFLAGS = @TIRPC_CFLAGS@ @RPC_CFLAGS@ -I../../yp
+CLEANFILES = yp.h yp_xdr.c yp_clnt.c
+
if CAN_TEST
+
noinst_PROGRAMS = yp ldifsort
-yp_SOURCES = yp.c ../../yp/yp_clnt.c ../../yp/yp_xdr.c
+BUILT_SOURCES = yp.h yp_clnt.c yp_xdr.c
+yp_SOURCES = yp.c yp.h yp_clnt.c yp_xdr.c
yp_LDADD = @TIRPC_LIBS@ @RPC_LIBS@
+
+yp.h: ../../yp/yp.x
+ $(RM) -f $@
+ $(RPCGEN) -h -o $@ $^
+yp_xdr.c: ../../yp/yp.x
+ $(RM) -f $@
+ $(RPCGEN) -c -o $@ $^
+yp_clnt.c: ../../yp/yp.x
+ $(RM) -f $@
+ $(RPCGEN) -l -o $@ $^
+
endif