1 SUBDIRS = filemanager man2hlp vfs viewer
12 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\" \
13 -DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\" \
14 -DDATADIR=\""$(pkgdatadir)/"\" \
15 -DLOCALEDIR=\""$(localedir)"\"
19 AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
22 AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
24 localedir = $(datadir)/locale
25 pkglibexecdir = $(libexecdir)/@PACKAGE@
30 EDITLIB = editor/libedit.la
34 DIFFLIB = diffviewer/libdiffviewer.la
39 viewer/libmcviewer.la \
40 filemanager/libmcfilemanager.la \
41 $(DIFFLIB) $(EDITLIB) \
42 $(top_builddir)/lib/libmc.la
45 # this is a hack for linking with own samba library in simple way
46 mc_LDADD += vfs/smbfs/helpers/libsamba.a
50 cons.handler.c consaver/cons.saver.h
55 clipboard.c clipboard.h \
56 events_init.c events_init.h \
60 keybind-defaults.c keybind-defaults.h \
64 subshell.c subshell.h \
65 textconf.c textconf.h \
69 mc_SOURCES += selcodepage.c selcodepage.h
73 mc_SOURCES += background.c background.h
76 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
78 # end of automated testing
81 $(MAKE) install_mcview
83 $(MAKE) install_mcedit
86 $(MAKE) install_mcdiff
90 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
93 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
96 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
99 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
102 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
104 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
107 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff