Makefile.am 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.a \
  39. ../lib/compat/libcompat.a \
  40. $(LIBINTL)
  41. EXTRA_DIST = keyoverride mkcurkeys.pl
  42. CLEANFILES = curkeys.h
  43. curkeys.$(OBJEXT): curkeys.h
  44. curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
  45. $(AM_V_GEN) cursesfile=`echo '#include "dselect-curses.h"' | \
  46. $(CPP) $(CPPFLAGS) -I$(top_builddir) -I $(srcdir) - | \
  47. grep 'curses.h' | head -n 1 | \
  48. sed -e 's/^[^"]*"//; s/".*$$//'`; \
  49. if [ "$$cursesfile" = "" ]; then \
  50. echo "can't find curses file"; exit 1; \
  51. fi; \
  52. $(PERL) $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@
  53. install-data-local:
  54. $(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d