patch-Makefile_am 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --- libtirpc-1.0.1.orig/Makefile.am 2015-10-30 16:15:14.000000000 +0100
  2. +++ libtirpc-1.0.1/Makefile.am 2015-11-29 16:38:58.340674483 +0100
  3. @@ -1,6 +1,12 @@
  4. -SUBDIRS = src man doc
  5. +SUBDIRS = src man doc rpcgen
  6. ACLOCAL_AMFLAGS = -I m4
  7. +GENFILES = tirpc/rpcsvc/crypt.h \
  8. + tirpc/rpcsvc/mount.h \
  9. + tirpc/rpcsvc/nfs_prot.h \
  10. + tirpc/rpcsvc/rquota.h \
  11. + tirpc/rpc/rpcb_prot.h
  12. +
  13. noinst_HEADERS = tirpc/reentrant.h \
  14. tirpc/getpeereid.h \
  15. tirpc/libc_private.h \
  16. @@ -8,7 +14,9 @@ noinst_HEADERS = tirpc/reentrant.
  17. nobase_include_HEADERS = tirpc/netconfig.h \
  18. tirpc/rpcsvc/crypt.x \
  19. - tirpc/rpcsvc/crypt.h \
  20. + tirpc/rpcsvc/mount.x \
  21. + tirpc/rpcsvc/nfs_prot.x \
  22. + tirpc/rpcsvc/rquota.x \
  23. tirpc/rpc/xdr.h \
  24. tirpc/rpc/types.h \
  25. tirpc/rpc/svc_soc.h \
  26. @@ -21,7 +29,6 @@ nobase_include_HEADERS = tirpc/netconfig
  27. tirpc/rpc/rpcent.h \
  28. tirpc/rpc/rpc_com.h \
  29. tirpc/rpc/rpcb_prot.x \
  30. - tirpc/rpc/rpcb_prot.h \
  31. tirpc/rpc/rpcb_clnt.h \
  32. tirpc/rpc/raw.h \
  33. tirpc/rpc/pmap_rmt.h \
  34. @@ -48,5 +55,17 @@ endif
  35. pkgconfigdir=$(libdir)/pkgconfig
  36. pkgconfig_DATA = libtirpc.pc
  37. -CLEANFILES = cscope.* *~
  38. +nobase_nodist_include_HEADERS = $(GENFILES)
  39. +BUILT_SOURCES = $(GENFILES)
  40. +
  41. +$(GENFILES): %.h: %.x $(top_builddir)/rpcgen/rpcgen
  42. + mkdir -p $(dir $@)
  43. + $(top_builddir)/rpcgen/rpcgen -h -o $@ $<
  44. +
  45. +$(top_builddir)/rpcgen/rpcgen: force
  46. + cd rpcgen && $(MAKE)
  47. +
  48. +force:
  49. +
  50. +CLEANFILES = cscope.* *~ $(GENFILES)
  51. DISTCLEANFILES = Makefile.in libtirpc*.tar.gz