SUFFIXES = .x _clnt.c _svc.c _xdr.c .h
.x_clnt.c:
- (echo "#define _BSD_SOURCE"; rpcgen -l $<) > $@
+ (echo "#define _BSD_SOURCE"; rpcgen -l $<) | sed s%../../hadaq/%% > $@
.x_svc.c:
- (echo "#define _BSD_SOURCE"; rpcgen -s tcp $<) > $@
+ (echo "#define _BSD_SOURCE"; rpcgen -s tcp $<) | sed s%../../hadaq/%%> $@
.x_xdr.c:
- (echo "#define _BSD_SOURCE"; rpcgen -c $<) > $@
+ (echo "#define _BSD_SOURCE"; rpcgen -c $<) | sed s%../../hadaq/%%> $@
.x.h:
rpcgen -h $< > $@
+ echo @srcdir@
online_svc.c: online.x
(echo "#define _BSD_SOURCE"; rpcgen -m online.x) >online_svc.c