]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/Makefile.am
Merge nfsmount.x and mount.x into mount.x
[nfs-utils.git] / utils / mount / Makefile.am
index 3ed0ace96b6d28cd008f8cf5425f2fd972b5f3b7..4a2f43728de4317abe383e6ad12af97d494d6b08 100644 (file)
@@ -2,48 +2,16 @@
 
 man8_MANS      = mount.nfs.man umount.nfs.man
 
-RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen
-
-GENFILES_CLNT  = nfsmount_clnt.c
-GENFILES_XDR   = nfsmount_xdr.c
-GENFILES_H     = nfsmount.h
-
-GENFILES       = $(GENFILES_CLNT) $(GENFILES_XDR) $(GENFILES_H)
-
 sbin_PROGRAMS  = mount.nfs
 EXTRA_DIST = nfsmount.x $(man8_MANS)
 mount_nfs_SOURCES = mount.c nfsmount.c nfs4mount.c nfsumount.c \
-                 nfsmount_xdr.c mount_constants.h nfs4_mount.h nfsmount.h \
-                 nfs_mount4.h
-
-BUILT_SOURCES = $(GENFILES)
-mount_nfs_LDADD = ../../support/nfs/libnfs.a
-
-
-$(RPCGEN):
-       make -C ../../tools/rpcgen all
-
-$(GENFILES_CLNT): %_clnt.c: %.x $(RPCGEN)
-       test -f $@ && rm -rf $@ || true
-       $(RPCGEN) -l -o $@ $<
-
-$(GENFILES_SVC): %_svc.c: %.x $(RPCGEN)
-       test -f $@ && rm -rf $@ || true
-       $(RPCGEN) -m -o $@ $<
-
-$(GENFILES_XDR): %_xdr.c: %.x $(RPCGEN)
-       test -f $@ && rm -rf $@ || true
-       $(RPCGEN) -c -o $@ $<
-
-$(GENFILES_H): %.h: %.x $(RPCGEN)
-       test -f $@ && rm -rf $@ || true
-       $(RPCGEN) -h -o $@ $<
+                 mount_constants.h nfs4_mount.h nfs_mount4.h
 
+mount_nfs_LDADD = ../../support/nfs/libnfs.a \
+                 ../../support/export/libexport.a
 
 MAINTAINERCLEANFILES = Makefile.in
 
-CLEANFILES = $(GENFILES)
-
 install-exec-hook:
        (cd $(DESTDIR)$(sbindir) && \
          ln -sf $(sbin_PROGRAMS) mount.nfs4 && \