Makefile.am 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ## Process this file with automake to produce Makefile.in
  2. SUBDIRS = methods po
  3. localedir = $(datadir)/locale
  4. pkgconfdir = $(sysconfdir)/@PACKAGE@
  5. AM_CPPFLAGS = \
  6. -DLOCALEDIR=\"$(localedir)\" \
  7. -DADMINDIR=\"$(admindir)\" -DLIBDIR=\"$(pkglibdir)\" \
  8. -DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
  9. -idirafter $(top_srcdir)/lib/compat \
  10. -iquote $(builddir) \
  11. -I$(top_builddir) \
  12. -I$(top_srcdir)/lib
  13. bin_PROGRAMS = dselect
  14. dselect_SOURCES = \
  15. dselect.h \
  16. dselect-curses.h \
  17. basecmds.cc \
  18. baselist.cc \
  19. basetop.cc \
  20. bindings.cc bindings.h \
  21. curkeys.cc \
  22. helpmsgs.cc helpmsgs.h \
  23. main.cc \
  24. methkeys.cc \
  25. methlist.cc \
  26. method.cc method.h \
  27. methparse.cc \
  28. pkgcmds.cc \
  29. pkgdepcon.cc \
  30. pkgdisplay.cc \
  31. pkginfo.cc \
  32. pkgkeys.cc \
  33. pkglist.cc pkglist.h \
  34. pkgsublist.cc \
  35. pkgtop.cc
  36. dselect_LDADD = \
  37. $(CURSES_LIBS) \
  38. ../lib/dpkg/libdpkg.la \
  39. $(LIBINTL)
  40. EXTRA_DIST = keyoverride mkcurkeys.pl
  41. CLEANFILES = curkeys.h
  42. curkeys.$(OBJEXT): curkeys.h
  43. curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
  44. $(AM_V_GEN) cursesfile=`echo '#include "dselect-curses.h"' | \
  45. $(CPP) $(CPPFLAGS) -I$(top_builddir) -I $(srcdir) - | \
  46. grep 'curses.h' | head -n 1 | \
  47. sed -e 's/^[^"]*"//; s/".*$$//'`; \
  48. if [ "$$cursesfile" = "" ]; then \
  49. echo "can't find curses file"; exit 1; \
  50. fi; \
  51. $(PERL) $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@
  52. install-data-local:
  53. $(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d