Makefile.am 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. if BUILD_INSTALL_INFO
  34. sbin_PROGRAMS += dpkg-install-info
  35. # Automake has its own install-info rule, gah
  36. dpkg_install_info_SOURCES = install-info.c
  37. dpkg_install_info_LDADD = \
  38. ../lib/compat/libcompat.a
  39. endif
  40. transform = s/dpkg-install-info/install-info/; $(program_transform_name)
  41. install-data-local:
  42. if BUILD_UPDATE_ALTERNATIVES
  43. $(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
  44. $(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
  45. $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
  46. endif
  47. uninstall-local:
  48. rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
  49. if BUILD_INSTALL_INFO
  50. rm -f $(DESTDIR)$(sbindir)/install-info
  51. endif
  52. TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)
  53. test_tmpdir = t.tmp
  54. test_cases = \
  55. t/100_update_alternatives.t
  56. include $(top_srcdir)/Makecheck.am
  57. clean-local: check-clean