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 background.c background.h \
56 clipboard.c clipboard.h \
57 events_init.c events_init.h \
61 keybind-defaults.c keybind-defaults.h \
65 subshell.c subshell.h \
66 textconf.c textconf.h \
70 mc_SOURCES += selcodepage.c selcodepage.h
73 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
75 # end of automated testing
78 $(MAKE) install_mcview
80 $(MAKE) install_mcedit
83 $(MAKE) install_mcdiff
87 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
90 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
93 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
96 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
99 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
101 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
104 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff