Makefile.am 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ## Process this file with automake to produce Makefile.in
  2. localedir = $(datadir)/locale
  3. AM_CPPFLAGS = \
  4. -DADMINDIR=\"$(admindir)\" \
  5. -DLOCALEDIR=\"$(localedir)\" \
  6. -DLOGDIR=\"$(logdir)\" \
  7. -DSYSCONFDIR=\"$(sysconfdir)\" \
  8. -idirafter $(top_srcdir)/lib/compat \
  9. -I$(top_builddir) \
  10. -I$(top_srcdir)/lib
  11. EXTRA_DIST = \
  12. README.alternatives \
  13. $(test_scripts) \
  14. $(nil)
  15. bin_PROGRAMS =
  16. if BUILD_UPDATE_ALTERNATIVES
  17. bin_PROGRAMS += update-alternatives
  18. endif
  19. update_alternatives_SOURCES = \
  20. update-alternatives.c
  21. update_alternatives_CPPFLAGS = \
  22. -DALT_TMP_EXT=\".dpkg-tmp\" \
  23. -DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
  24. $(AM_CPPFLAGS)
  25. update_alternatives_LDADD = \
  26. ../lib/compat/libcompat.la \
  27. $(LIBINTL) \
  28. $(nil)
  29. sbin_PROGRAMS =
  30. if BUILD_START_STOP_DAEMON
  31. sbin_PROGRAMS += start-stop-daemon
  32. start_stop_daemon_SOURCES = \
  33. start-stop-daemon.c
  34. start_stop_daemon_LDADD = \
  35. ../lib/compat/libcompat.la \
  36. $(PS_LIBS) \
  37. $(KVM_LIBS) \
  38. $(nil)
  39. endif
  40. install-data-local:
  41. if BUILD_UPDATE_ALTERNATIVES
  42. $(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
  43. $(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
  44. $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
  45. endif
  46. uninstall-local:
  47. rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
  48. TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)/data
  49. test_tmpdir = t.tmp
  50. test_scripts = \
  51. t/update_alternatives.t
  52. include $(top_srcdir)/check.am
  53. clean-local: check-clean