1 ## Process this file with automake to produce Makefile.in
5 localedir = $(datadir)/locale
6 pkgconfdir = $(sysconfdir)/@PACKAGE@
9 -DLOCALEDIR=\"$(localedir)\" \
10 -DADMINDIR=\"$(admindir)\" \
11 -DLIBDIR=\"$(pkglibexecdir)\" \
12 -DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
13 -idirafter $(top_srcdir)/lib/compat \
21 if HAVE_LINKER_AS_NEEDED
27 bin_PROGRAMS = dselect
36 bindings.cc bindings.h \
38 helpmsgs.cc helpmsgs.h \
49 pkglist.cc pkglist.h \
55 ../lib/dpkg/libdpkg.la \
59 EXTRA_DIST = keyoverride mkcurkeys.pl
60 CLEANFILES = curkeys.h
62 curkeys.$(OBJEXT): curkeys.h
63 curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
64 $(AM_V_GEN) cursesfile=`echo '#include "dselect-curses.h"' | \
65 $(CPP) $(CPPFLAGS) -I$(top_builddir) -I $(srcdir) - | \
66 grep '[^-]curses\.h' | head -n 1 | \
67 sed -e 's/^[^"]*"//; s/".*$$//'`; \
68 if [ "$$cursesfile" = "" ]; then \
69 echo "can't find curses file"; exit 1; \
71 $(PERL) $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@
74 $(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d