1
0
mirror of https://github.com/MidnightCommander/mc synced 2025-01-12 14:29:41 +03:00
mc/lib/Makefile.am
Pavel Roskin 83cb1dd047 * configure.in: Don't substitute mc.sh and mc.csh - it's now
done ...
* lib/Makefile.am: ... here.  Add wrappers for mc to avoid
defining complex shell scripts in functions and aliases.
* lib/mc-wrapper.csh.in: New file - template for the script
that runs mc and changes directory in csh.
* lib/mc-wrapper.sh.in: New file - template for the script
that runs mc and changes directory in sh.
2002-11-01 18:10:20 +00:00

48 lines
1.1 KiB
Makefile

suppbindir = $(pkgdatadir)/bin
tidir = $(pkgdatadir)/term
if CHARSET
LIBFILES_ADD = mc.charsets
else
LIBFILES_ADD =
endif
LIBFILES_OUT = mc.ext
LIBFILES_CONST = mc.hint mc.hint.cs mc.hint.es mc.hint.hu mc.hint.it \
mc.hint.nl mc.hint.pl mc.hint.ru mc.hint.uk mc.hint.zh mc.lib \
mc.menu cedit.menu edit.indent.rc edit.spell.rc
noinst_DATA = \
mcserv.init \
mcserv.pamd
noinst_SCRIPTS = tdiff
suppbin_SCRIPTS = mc.csh mc.sh mc-wrapper.csh mc-wrapper.sh
ti_DATA = README.xterm linux.ti xterm.ad xterm.ti ansi.ti vt100.ti xterm.tcap
pkgdata_DATA = $(LIBFILES_CONST) $(LIBFILES_ADD) $(LIBFILES_OUT)
CLEANFILES = $(suppbin_SCRIPTS)
# Files processed by configure don't need to be here
EXTRA_DIST = \
$(LIBFILES_CONST) \
$(ti_DATA) \
$(noinst_DATA) \
$(noinst_SCRIPTS) \
mc.charsets
mc.csh: mc.csh.in
sed "s%@""suppbindir@%$(suppbindir)%" mc.csh.in > mc.csh
mc.sh: mc.sh.in
sed "s%@""suppbindir@%$(suppbindir)%" mc.sh.in > mc.sh
mc-wrapper.csh: mc-wrapper.csh.in
sed "s%@""bindir@%$(bindir)%" mc-wrapper.csh.in > mc-wrapper.csh
mc-wrapper.sh: mc-wrapper.sh.in
sed "s%@""bindir@%$(bindir)%" mc-wrapper.sh.in > mc-wrapper.sh