Makefile.am 1.4 KB

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