Just a little correction at the it.po file.
[midnight-commander.git] / src / Makefile.am
blob1016a8a8e2d97592a5a73660710b4488ecdfa10a
1 AM_CFLAGS = $(GLIB_CFLAGS)
3 localedir = $(datadir)/locale
5 bin_PROGRAMS = mc mcmfmt
7 if CONS_SAVER
8 pkglib_PROGRAMS = cons.saver
9 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\" \
10         -DLIBDIR=\""$(pkglibdir)"\"
11 else
12 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\"
13 endif
15 noinst_PROGRAMS = man2hlp
16 man2hlp_LDADD = $(GLIB_LIBS)
18 mcmfmt_SOURCES = mfmt.c
20 cons_saver_SOURCES = cons.saver.c
22 man2hlp_SOURCES = man2hlp.c
24 if INCLUDED_SLANG
25 SLANGLIB = ../slang/libmcslang.a
26 endif
28 if USE_EDIT
29 EDITLIB = ../edit/libedit.a
30 endif
32 if USE_VFS
33 if USE_SAMBA_FS
34 VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
35 else
36 VFSLIB = ../vfs/libvfs-mc.a
37 endif
38 endif
40 mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
41         $(INTLLIBS) $(GLIB_LIBS) $(MCLIBS) $(LIBICONV)
43 CHARSET_SRC = charsets.c charsets.h selcodepage.c selcodepage.h
45 SRCS =  achown.c achown.h background.c background.h boxes.c boxes.h     \
46         chmod.c chmod.h chown.c chown.h cmd.c cmd.h color.c color.h     \
47         command.c command.h complete.c complete.h cons.handler.c        \
48         cons.saver.h dialog.c dialog.h dir.c dir.h dlg.c dlg.h          \
49         eregex.h ext.c ext.h file.c filegui.c filegui.h file.h          \
50         filenot.c fileopctx.c fileopctx.h find.c find.h findme.c        \
51         findme.h fs.h fsusage.c fsusage.h global.h help.c help.h        \
52         hotlist.c hotlist.h i18n.h info.c info.h key.c key.h            \
53         keyxdef.c layout.c layout.h learn.c learn.h listmode.c          \
54         listmode.h main.c main.h menu.c menu.h                          \
55         mountlist.c mountlist.h mouse.c mouse.h myslang.h option.c      \
56         option.h panel.h panelize.c panelize.h poptalloca.h popt.c      \
57         poptconfig.c popt.h popthelp.c poptint.h poptparse.c profile.c  \
58         profile.h regex.c rxvt.c screen.c setup.c setup.h slint.c       \
59         subshell.c subshell.h terms.c text.c textconf.c textconf.h      \
60         tree.c tree.h treestore.c treestore.h tty.h user.c user.h       \
61         util.c util.h utilunix.c view.c view.h widget.c widget.h        \
62         win.c win.h wtools.c wtools.h
64 if CHARSET
65 mc_SOURCES = $(SRCS) $(CHARSET_SRC)
66 else
67 mc_SOURCES = $(SRCS)
68 endif
70 EXTRA_DIST = TODO ChangeLog OChangeLog man2hlp.c $(CHARSET_SRC)
72 install-exec-hook:
73         $(MAKE) install_mcview
74 if USE_EDIT
75         $(MAKE) install_mcedit
76 endif
79 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
81 install_mcview:
82         cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
84 install_mcedit:
85         cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit