mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
Fix invocation of rpcgen.
* qemud/Makefile.am: Fix invocation of rpcgen, and make sure we run the right one.
This commit is contained in:
parent
fe54138020
commit
e0a2770f67
@ -1,3 +1,9 @@
|
|||||||
|
Mon Jan 12 19:16:00 +0000 2009 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
|
Fix invocation of rpcgen.
|
||||||
|
* qemud/Makefile.am: Fix invocation of rpcgen, and make sure
|
||||||
|
we run the right one.
|
||||||
|
|
||||||
Mon Jan 12 18:55:16 +0100 2009 Jim Meyering <meyering@redhat.com>
|
Mon Jan 12 18:55:16 +0100 2009 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
tests: quiet virsh-all
|
tests: quiet virsh-all
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
|
RPCGEN = $(RPCGEN)
|
||||||
|
|
||||||
DAEMON_SOURCES = \
|
DAEMON_SOURCES = \
|
||||||
event.c event.h \
|
event.c event.h \
|
||||||
qemud.c qemud.h \
|
qemud.c qemud.h \
|
||||||
@ -37,24 +39,27 @@ SUFFIXES = .x
|
|||||||
# including <config.h> before "remote_protocol.h".
|
# including <config.h> before "remote_protocol.h".
|
||||||
.x.c:
|
.x.c:
|
||||||
rm -f $@ $@-t $@-t1 $@-t2
|
rm -f $@ $@-t $@-t1 $@-t2
|
||||||
rpcgen -c -o $@-t $<
|
$(RPCGEN) -c -o $@-t $<
|
||||||
(echo '#include <config.h>'; cat $@-t) > $@-t1
|
(echo '#include <config.h>'; cat $@-t) > $@-t1
|
||||||
if GLIBC_RPCGEN
|
if GLIBC_RPCGEN
|
||||||
perl -w rpcgen_fix.pl $@-t1 > $@-t2
|
perl -w rpcgen_fix.pl $@-t1 > $@-t2
|
||||||
rm $@-t1
|
rm $@-t1
|
||||||
chmod 444 $@-t2
|
chmod 444 $@-t2
|
||||||
mv $@-t2 $@
|
mv $@-t2 $@
|
||||||
|
else
|
||||||
|
chmod 444 $@-t1
|
||||||
|
mv $@-t1 $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.x.h:
|
.x.h:
|
||||||
rm -f $@ $@-t
|
rm -f $@ $@-t
|
||||||
rpcgen -h -o $@-t $<
|
$(RPCGEN) -h -o $@-t $<
|
||||||
if GLIBC_RPCGEN
|
if GLIBC_RPCGEN
|
||||||
perl -pi -e 's/\t/ /g' $@-t
|
perl -pi -e 's/\t/ /g' $@-t
|
||||||
|
endif
|
||||||
chmod 444 $@-t
|
chmod 444 $@-t
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
remote_protocol.c: remote_protocol.h
|
remote_protocol.c: remote_protocol.h
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user