Makefile.am 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_cases)
  14. bin_PROGRAMS =
  15. if BUILD_UPDATE_ALTERNATIVES
  16. bin_PROGRAMS += update-alternatives
  17. endif
  18. update_alternatives_SOURCES = \
  19. update-alternatives.c
  20. update_alternatives_LDADD = \
  21. ../lib/compat/libcompat.a \
  22. $(LIBINTL) \
  23. $(UA_LIBS)
  24. sbin_PROGRAMS =
  25. if BUILD_START_STOP_DAEMON
  26. sbin_PROGRAMS += start-stop-daemon
  27. start_stop_daemon_SOURCES = \
  28. start-stop-daemon.c
  29. start_stop_daemon_LDADD = \
  30. ../lib/compat/libcompat.a \
  31. $(SSD_LIBS)
  32. endif
  33. install-data-local:
  34. if BUILD_UPDATE_ALTERNATIVES
  35. $(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
  36. $(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
  37. $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
  38. endif
  39. uninstall-local:
  40. rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
  41. TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)
  42. test_tmpdir = t.tmp
  43. test_cases = \
  44. t/100_update_alternatives.t
  45. include $(top_srcdir)/check.am
  46. clean-local: check-clean