Release 1.15.8
[dpkg.git] / dselect / Makefile.am
blobf06391e48b72ad6f3c1f25dc55a4bc8dd2c8195b
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = methods po
5 localedir = $(datadir)/locale
6 pkgconfdir = $(sysconfdir)/@PACKAGE@
8 AM_CPPFLAGS = \
9         -DLOCALEDIR=\"$(localedir)\" \
10         -DADMINDIR=\"$(admindir)\" -DLIBDIR=\"$(pkglibdir)\" \
11         -DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
12         -idirafter $(top_srcdir)/lib/compat \
13         -iquote $(builddir) \
14         -I$(top_builddir) \
15         -I$(top_srcdir)/lib
18 bin_PROGRAMS = dselect
20 dselect_SOURCES = \
21         dselect.h \
22         dselect-curses.h \
23         basecmds.cc \
24         baselist.cc \
25         basetop.cc \
26         bindings.cc bindings.h \
27         curkeys.cc \
28         helpmsgs.cc helpmsgs.h \
29         main.cc \
30         methkeys.cc \
31         methlist.cc \
32         method.cc method.h \
33         methparse.cc \
34         pkgcmds.cc \
35         pkgdepcon.cc \
36         pkgdisplay.cc \
37         pkginfo.cc \
38         pkgkeys.cc \
39         pkglist.cc pkglist.h \
40         pkgsublist.cc \
41         pkgtop.cc
43 dselect_LDADD = \
44         $(CURSES_LIBS) \
45         ../lib/dpkg/libdpkg.a \
46         ../lib/compat/libcompat.a \
47         $(LIBINTL)
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; \
61         fi; \
62         perl $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@
64 install-data-local:
65         $(mkdir_p) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d