Makefile.am 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 WITH_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 WITH_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 WITH_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 WITH_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 WITH_INSTALL_INFO
  50. rm -f $(DESTDIR)$(sbindir)/install-info
  51. endif
  52. TEST_VERBOSE = 0
  53. TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)
  54. test_tmpdir = t.tmp
  55. test_cases = \
  56. t/100_update_alternatives.t
  57. include $(top_srcdir)/Makecheck.am
  58. clean-local: check-clean