Makefile.am 1.3 KB

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