1 ## Process this file with automake to produce Makefile.in
5 localedir = $(datadir)/locale
6 pkgconfdir = $(sysconfdir)/@PACKAGE@
9 -DLOCALEDIR=\"$(localedir)\" \
10 -DADMINDIR=\"$(admindir)\" -DLIBDIR=\"$(pkglibdir)\" \
11 -DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
12 -idirafter $(top_srcdir)/lib/compat \
18 bin_PROGRAMS = dselect
26 bindings.cc bindings.h \
28 helpmsgs.cc helpmsgs.h \
39 pkglist.cc pkglist.h \
45 ../lib/dpkg/libdpkg.a \
46 ../lib/compat/libcompat.a \
50 EXTRA_DIST = keyoverride mkcurkeys.pl
51 CLEANFILES = curkeys.h
53 curkeys.$(OBJEXT): curkeys.h
54 curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
55 $(AM_V_GEN) cursesfile=`echo '#include "dselect-curses.h"' | \
56 $(CPP) -I$(top_builddir) -I $(srcdir) - | \
57 grep 'curses.h' | head -n 1 | \
58 sed -e 's/^[^"]*"//; s/".*$$//'`; \
59 if [ "$$cursesfile" = "" ]; then \
60 echo "can't find curses file"; exit 1; \
62 perl $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@
65 $(mkdir_p) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d