Makefile.am 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_LDADD = \
  22. ../lib/compat/libcompat.la \
  23. $(LIBINTL) \
  24. $(UA_LIBS)
  25. sbin_PROGRAMS =
  26. if BUILD_START_STOP_DAEMON
  27. sbin_PROGRAMS += start-stop-daemon
  28. start_stop_daemon_SOURCES = \
  29. start-stop-daemon.c
  30. start_stop_daemon_LDADD = \
  31. ../lib/compat/libcompat.la \
  32. $(SSD_LIBS)
  33. endif
  34. install-data-local:
  35. if BUILD_UPDATE_ALTERNATIVES
  36. $(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
  37. $(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
  38. $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
  39. endif
  40. uninstall-local:
  41. rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
  42. TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)
  43. test_tmpdir = t.tmp
  44. test_scripts = \
  45. t/update_alternatives.t
  46. include $(top_srcdir)/check.am
  47. clean-local: check-clean