Moved the install rules for etc_netconfig into
its own doc/Makefile.am so $(DESTDIR) is defined
correctly when the --prefix configuration argument
is used.
Signed-off-by: Steve Dickson <steved@redhat.com>
pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA = libtirpc.pc
-
-install-exec-local:
- cp -p ./doc/etc_netconfig $(DESTDIR)/etc/netconfig
- chmod 0644 $(DESTDIR)/etc/netconfig
AC_CHECK_LIB([pthread], [pthread_create])
-AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
+AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])
AC_OUTPUT(libtirpc.pc)
--- /dev/null
+
+install: install-am
+ $(mkinstalldirs) $(DESTDIR)/etc
+ cp -p ./etc_netconfig $(DESTDIR)/etc/netconfig
+ chmod 0644 $(DESTDIR)/etc/netconfig