diff --git a/daemon/Makefile.am b/daemon/Makefile.am index a1e5e68eb..024aa6a0c 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -26,19 +26,6 @@ generator_built = \ stubs.c \ names.c -BUILT_SOURCES = \ - $(generator_built) \ - guestfs_protocol.c \ - guestfs_protocol.h \ - errnostring-gperf.c \ - errnostring-gperf.gperf \ - errnostring.c \ - errnostring.h - -EXTRA_DIST = \ - $(BUILT_SOURCES) \ - guestfsd.pod - shared_with_library = \ guestfs_protocol.c \ guestfs_protocol.h \ @@ -46,6 +33,15 @@ shared_with_library = \ errnostring.c \ errnostring.h +BUILT_SOURCES = \ + $(generator_built) \ + $(shared_with_library) \ + errnostring-gperf.c + +EXTRA_DIST = \ + $(BUILT_SOURCES) \ + guestfsd.pod + $(shared_with_library): %: $(libsrcdir)/% rm -f $@ ln $< $@