Skip to contentSkip to conversation

cld: use portable Makefile rules for rpcgen files

PATCH Applied Colin McCabe 2 participants 2 messages Feb 9, 2010 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cld: use portable Makefile rules for rpcgen files

---
 lib/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
lib/Makefile.am +2 -2
index d3f1a5d..75b7233 100644
@@ -10,10 +10,10 @@ INCLUDES		= -I$(top_srcdir)/include	\
 mostlyclean-local:
 	rm -f *_rpc.h *_rpc_xdr.c
 
-%_rpc.h: %_rpc.x
+cld_msg_rpc.h: $(srcdir)/cld_msg_rpc.x
 	rpcgen -h $< > $@
 
-%_rpc_xdr.c: %_rpc.x
+cld_msg_rpc_xdr.c: $(srcdir)/cld_msg_rpc.x
 	rpcgen -c $< | grep -v 'register int32_t.*buf' > $@
 
 LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
Signature · 1 line
1.6.2.5
Applied
#1 lore raw
Quoted 10 lines · Colin McCabe
---
  lib/Makefile.am |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
lib/Makefile.am +0 -0
index d3f1a5d..75b7233 100644

lib/Makefile.am INCLUDES = -I$(top_srcdir)/include \ · line 17

Quoted 10 lines
lib/Makefile.am +2 -2
@@ -10,10 +10,10 @@ INCLUDES		= -I$(top_srcdir)/include	\
  mostlyclean-local:
  	rm -f *_rpc.h *_rpc_xdr.c
 
-%_rpc.h: %_rpc.x
+cld_msg_rpc.h: $(srcdir)/cld_msg_rpc.x
  	rpcgen -h $<  >  $@
 
-%_rpc_xdr.c: %_rpc.x
+cld_msg_rpc_xdr.c: $(srcdir)/cld_msg_rpc.x
  	rpcgen -c $<  | grep -v 'register int32_t.*buf'>  $@

applied