Fix rpcgen call for separated builds.

This commit is contained in:
Hilko Bengen
2013-05-01 23:15:48 +02:00
parent 66145799cb
commit 13fba490cd

View File

@@ -198,14 +198,14 @@ endif
guestfs_protocol.c: guestfs_protocol.x
rm -f $@-t $@-t2
$(RPCGEN) $(RPCGEN_DEFS) -c -o $@-t $(srcdir)/$<
$(RPCGEN) $(RPCGEN_DEFS) -c -o $@-t $<
sed 's,\.\./\(\.\./\)*src,.,' < $@-t > $@-t2
rm $@-t
mv $@-t2 $@
guestfs_protocol.h: guestfs_protocol.x
rm -f $@-t
$(RPCGEN) $(RPCGEN_DEFS) -h -o $@-t $(srcdir)/$<
$(RPCGEN) $(RPCGEN_DEFS) -h -o $@-t $<
mv $@-t $@
endif