1998-12-16 08:00:17 +03:00
|
|
|
srcdir = @srcdir@
|
1998-02-27 07:54:42 +03:00
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
rootdir = $(srcdir)
|
|
|
|
@MCFGR@@MCF@
|
|
|
|
|
1998-04-14 08:05:43 +04:00
|
|
|
foreigndirs=pc
|
1998-12-16 06:44:31 +03:00
|
|
|
codedirs=vfs lib doc slang gtkedit edit src gnome new_icons icons idl
|
1998-04-02 23:57:59 +04:00
|
|
|
unixdirs=intl $(codedirs) @POSUB@
|
1998-02-27 07:54:42 +03:00
|
|
|
alldirs=$(unixdirs) $(foreigndirs)
|
|
|
|
subdirs=$(alldirs)
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
DISTMAIN = configure configure.in NEWS README INSTALL INSTALL.FAST \
|
|
|
|
Makefile.in FAQ COPYING create_vcs install-sh \
|
1998-05-22 05:54:25 +04:00
|
|
|
config.h.in mc-aclocal.m4 aclocal.m4 acconfig.h \
|
1998-09-18 20:11:37 +04:00
|
|
|
VERSION mcfn_install.in Make.common.in README.PC \
|
1999-03-15 07:24:10 +03:00
|
|
|
mc.spec mc.spec.in Specfile README.QNX VERSION.in \
|
1998-12-16 06:48:32 +03:00
|
|
|
mkinstalldirs autogen.sh ABOUT-NLS gettext.m4
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
all:
|
1998-04-14 20:53:04 +04:00
|
|
|
@for dir in @INTLSUB@ ${codedirs} @POSUB@; do \
|
1998-02-27 07:54:42 +03:00
|
|
|
cd $$dir; \
|
|
|
|
${MAKE} all || exit 1; \
|
|
|
|
cd .. ;\
|
|
|
|
done
|
|
|
|
|
|
|
|
static:
|
|
|
|
$(MAKE) _LDFLAGS="-static $(_LDFLAGS)"
|
|
|
|
|
|
|
|
configure: configure.in aclocal.m4
|
|
|
|
chmod 755 configure
|
|
|
|
|
1998-07-24 10:56:54 +04:00
|
|
|
GNOME_M4_FILES = macros/gnome.m4 macros/gnome-vfs.m4 macros/gnome-undelfs.m4 \
|
|
|
|
macros/linger.m4
|
1998-12-16 06:44:31 +03:00
|
|
|
|
1998-07-24 10:39:59 +04:00
|
|
|
aclocal.m4: mc-aclocal.m4 $(GNOME_M4_FILES) gettext.m4
|
|
|
|
cd $(srcdir); cat $(GNOME_M4_FILES) mc-aclocal.m4 gettext.m4 > aclocal.m4
|
1998-05-15 22:52:27 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
config.h.in: configure.in acconfig.h
|
|
|
|
cd $(srcdir); autoheader
|
|
|
|
|
1999-02-08 01:36:52 +03:00
|
|
|
install: installdirs
|
1998-02-27 07:54:42 +03:00
|
|
|
@for I in $(unixdirs); do cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1; cd ..; done
|
|
|
|
$(INSTALL_DATA) $(srcdir)/FAQ $(DESTDIR)$(libdir)/FAQ
|
|
|
|
$(INSTALL_PROGRAM) mcfn_install $(DESTDIR)$(suppbindir)/mcfn_install
|
|
|
|
chmod +x $(DESTDIR)$(suppbindir)/mcfn_install
|
|
|
|
@echo "Please verify that the configuration values are correctly"
|
|
|
|
@echo "set in the mc.ext file in $(libdir)"
|
|
|
|
|
|
|
|
install.create_vcs:
|
|
|
|
$(INSTALL_PROGRAM) $(srcdir)/create_vcs $(DESTDIR)$(suppbindir)/create_vcs
|
|
|
|
if test x$(DESTDIR) = x; then $(SHELL) $(srcdir)/create_vcs; fi
|
|
|
|
|
|
|
|
installdirs:
|
1999-02-07 06:14:15 +03:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(libdir)
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(mandir) $(DESTDIR)$(man8dir)
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(icondir) $(DESTDIR)$(suppbindir)
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(tidir) $(DESTDIR)$(extfsdir)
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(idldir)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
mcfninstall:
|
|
|
|
-/bin/sh ./mcfn_install
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@for I in $(unixdirs); do cd $$I; $(MAKE) $@ || exit 1; cd ..; done
|
|
|
|
-$(RMF) $(DESTDIR)$(libdir)/FAQ
|
|
|
|
-$(RMF) $(DESTDIR)$(suppbindir)/mcfn_install
|
1998-06-26 12:53:40 +04:00
|
|
|
-rmdir $(DESTDIR)$(suppbindir)
|
|
|
|
-rmdir $(DESTDIR)$(libdir)
|
1998-02-27 07:54:42 +03:00
|
|
|
@echo Midnight Commander uninstalled
|
|
|
|
|
|
|
|
cross TAGS clean depend dep:
|
|
|
|
@for I in $(unixdirs); do cd $$I; $(MAKE) $@ || exit 1; cd ..; done
|
|
|
|
|
1998-12-16 06:20:38 +03:00
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) config.status
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
config.status:
|
|
|
|
if test -x config.status; then config.status --recheck; \
|
|
|
|
else $(SHELL) configure; fi
|
|
|
|
|
|
|
|
realclean: clean
|
|
|
|
rm -f *~
|
|
|
|
rm -f config.cache
|
|
|
|
|
|
|
|
# distclean goal is for making a clean source tree, but if you have run
|
|
|
|
# configure from a different directory, then doesn't destroy all your
|
|
|
|
# hardly compiled and linked stuff. That's why there is always $(srcdir)/
|
|
|
|
# In that case most of those commands do nothing, except cleaning *~
|
|
|
|
# and cleaning source links.
|
|
|
|
distclean:
|
|
|
|
rm -f $(srcdir)/*~ $(srcdir)/config.cache $(srcdir)/config.h
|
|
|
|
rm -f $(srcdir)/mcfn_install
|
|
|
|
@for I in $(alldirs); do cd $$I; $(MAKE) $@ || exit 1; cd ..; done
|
|
|
|
rm -f $(srcdir)/Makefile $(srcdir)/Make.common
|
1998-08-25 20:00:16 +04:00
|
|
|
rm -f lib/mc.ext mcfn_install
|
|
|
|
rm -f vfs/extfs/{ftplist,uzip,uzoo,lslR,ulha,ucpio,deb,urar,uar}
|
1998-05-04 03:18:59 +04:00
|
|
|
rm -f $(srcdir)/config.log $(srcdir)/config.status
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
distcopy:
|
1998-04-06 07:54:03 +04:00
|
|
|
sed -e "s/^%define ver .*/%define ver $(VERSION)/; s/^%define rel .*/%define rel 1/" mc.spec > Specfile
|
1998-09-18 23:45:27 +04:00
|
|
|
mkdir ../mc-$(VERSION)
|
1998-02-27 07:54:42 +03:00
|
|
|
cp $(DISTMAIN) ../mc-$(VERSION);
|
|
|
|
for I in $(alldirs); do \
|
1998-09-18 23:45:27 +04:00
|
|
|
mkdir ../mc-$(VERSION)/$$I; \
|
1998-02-27 07:54:42 +03:00
|
|
|
cd $$I ; \
|
1998-03-25 08:28:53 +03:00
|
|
|
$(MAKE) distcopy VERSION=$(VERSION) PACKAGE=mc || exit 1; \
|
1998-06-09 14:17:28 +04:00
|
|
|
cd ..; done
|
1998-12-16 06:44:31 +03:00
|
|
|
mkdir ../mc-$(VERSION)/macros
|
|
|
|
cp $(GNOME_M4_FILES) ../mc-$(VERSION)/macros
|
1998-06-09 14:17:28 +04:00
|
|
|
cd po; $(MAKE) || exit 1; cd ..;
|
1998-05-20 06:26:23 +04:00
|
|
|
cp po/Makefile.in.in ../mc-$(VERSION)/po;
|
|
|
|
cp po/POTFILES.in ../mc-$(VERSION)/po;
|
1998-05-22 05:54:25 +04:00
|
|
|
cp po/*.po po/*.gmo po/mc.pot po/stamp-cat-id po/cat-id-tbl.c ../mc-$(VERSION)/po;
|
1998-02-27 07:54:42 +03:00
|
|
|
(cd ..; tar cvf - mc-$(VERSION) | \
|
1998-06-09 14:17:28 +04:00
|
|
|
gzip -f9 > mc-$(VERSION).tar.gz)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-09-18 23:45:27 +04:00
|
|
|
dist: configure config.h.in distcopy
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1999-03-09 00:15:31 +03:00
|
|
|
mycheck: Makefile
|
1998-12-16 06:20:38 +03:00
|
|
|
rm -rf ../mc-$(VERSION)
|
|
|
|
tar xzvf ../mc-$(VERSION).tar.gz
|
|
|
|
mkdir mc-$(VERSION)/=build
|
|
|
|
mkdir mc-$(VERSION)/=inst
|
|
|
|
dc_install_base=`cd mc-$(VERSION)/=inst && pwd`; \
|
|
|
|
cd mc-$(VERSION)/=build \
|
|
|
|
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
|
|
|
&& $(MAKE) \
|
|
|
|
&& make install \
|
|
|
|
-rm -rf mc-$(VERSION)
|
1998-12-16 06:00:34 +03:00
|
|
|
|
1999-03-09 00:15:31 +03:00
|
|
|
mydistcheck: dist mycheck
|
1998-12-16 06:00:34 +03:00
|
|
|
@echo ***********************************
|
|
|
|
@echo mc-$(VERSION) is ready for release
|
|
|
|
@echo ***********************************
|
|
|
|
|
1999-03-09 00:15:31 +03:00
|
|
|
distcheck:
|
1999-03-15 07:24:10 +03:00
|
|
|
@echo use mydistcheck only if you know what you are doing.
|