X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2FMakefile.am;h=dd793612a8cb22870e5993df23683dd77eef7246;hp=03e872c74dd860fca0068a08d9fb5444e67d0420;hb=b2da776b250a3a081f2929d604dd2423a5bbff8a;hpb=8863ecde5dba262c0736da7505a9fa3655ed42f6 diff --git a/fish/Makefile.am b/fish/Makefile.am index 03e872c..dd79361 100644 --- a/fish/Makefile.am +++ b/fish/Makefile.am @@ -17,6 +17,9 @@ bin_PROGRAMS = guestfish +EXTRA_DIST = \ + rc_protocol.x + guestfish_SOURCES = \ alloc.c \ cmds.c \ @@ -29,9 +32,29 @@ guestfish_SOURCES = \ glob.c \ lcd.c \ more.c \ + rc.c \ + rc_protocol.c \ + rc_protocol.h \ + reopen.c \ time.c +BUILT_SOURCES = \ + rc_protocol.c \ + rc_protocol.h + guestfish_CFLAGS = \ - -I$(top_builddir)/src -Wall \ + -I$(top_srcdir)/src -I$(top_builddir)/src -Wall \ -DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"' guestfish_LDADD = $(top_builddir)/src/libguestfs.la $(LIBREADLINE) + +if HAVE_RPCGEN +rc_protocol.c: rc_protocol.x + rm -f $@-t + $(RPCGEN) -c -o $@-t $< + mv $@-t $@ + +rc_protocol.h: rc_protocol.x + rm -f $@-t + $(RPCGEN) -h -o $@-t $< + mv $@-t $@ +endif