8 codedirs
=vfs lib doc slang gtkedit edit src gnome new_icons icons idl
9 unixdirs
=intl
$(codedirs
) @POSUB@
10 alldirs
=$(unixdirs
) $(foreigndirs
)
14 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
15 INSTALL_DATA
= @INSTALL_DATA@
17 DISTMAIN
= configure configure.in NEWS README INSTALL INSTALL.FAST \
18 Makefile.in FAQ COPYING create_vcs install-sh \
19 config.h.in mc-aclocal.m4 aclocal.m4 acconfig.h \
20 VERSION mcfn_install.in Make.common.in README.PC \
21 mc.spec Specfile README.QNX VERSION.in \
22 mkinstalldirs autogen.sh ABOUT-NLS gettext.m4
25 @for
dir in @INTLSUB@
${codedirs} @POSUB@
; do \
27 ${MAKE} all || exit
1; \
32 $(MAKE
) _LDFLAGS
="-static $(_LDFLAGS)"
34 configure
: configure.in aclocal.m4
37 GNOME_M4_FILES
= macros
/gnome.m4 macros
/gnome-vfs.m4 macros
/gnome-undelfs.m4 \
40 aclocal.m4
: mc-aclocal.m4
$(GNOME_M4_FILES
) gettext.m4
41 cd
$(srcdir); cat
$(GNOME_M4_FILES
) mc-aclocal.m4 gettext.m4
> aclocal.m4
43 config.h.in
: configure.in acconfig.h
44 cd
$(srcdir); autoheader
47 @for I in
$(unixdirs
); do cd
$$I; $(MAKE
) DESTDIR
=$(DESTDIR
) $@ || exit
1; cd ..
; done
48 $(INSTALL_DATA
) $(srcdir)/FAQ
$(DESTDIR
)$(libdir)/FAQ
49 $(INSTALL_PROGRAM
) mcfn_install
$(DESTDIR
)$(suppbindir
)/mcfn_install
50 chmod
+x
$(DESTDIR
)$(suppbindir
)/mcfn_install
51 @echo
"Please verify that the configuration values are correctly"
52 @echo
"set in the mc.ext file in $(libdir)"
55 $(INSTALL_PROGRAM
) $(srcdir)/create_vcs
$(DESTDIR
)$(suppbindir
)/create_vcs
56 if
test x
$(DESTDIR
) = x
; then
$(SHELL
) $(srcdir)/create_vcs
; fi
59 $(MKINSTALLDIRS
) $(DESTDIR
)$(bindir) $(DESTDIR
)$(libdir)
60 $(MKINSTALLDIRS
) $(DESTDIR
)$(mandir) $(DESTDIR
)$(man8dir)
61 $(MKINSTALLDIRS
) $(DESTDIR
)$(icondir
) $(DESTDIR
)$(suppbindir
)
62 $(MKINSTALLDIRS
) $(DESTDIR
)$(tidir
) $(DESTDIR
)$(extfsdir
)
63 $(MKINSTALLDIRS
) $(DESTDIR
)$(idldir
)
66 -/bin
/sh .
/mcfn_install
69 @for I in
$(unixdirs
); do cd
$$I; $(MAKE
) $@ || exit
1; cd ..
; done
70 -$(RMF
) $(DESTDIR
)$(libdir)/FAQ
71 -$(RMF
) $(DESTDIR
)$(suppbindir
)/mcfn_install
72 -rmdir
$(DESTDIR
)$(suppbindir
)
73 -rmdir
$(DESTDIR
)$(libdir)
74 @echo Midnight Commander uninstalled
76 cross TAGS
clean depend dep
:
77 @for I in
$(unixdirs
); do cd
$$I; $(MAKE
) $@ || exit
1; cd ..
; done
79 Makefile
: Makefile.in config.status
80 CONFIG_FILES
=Makefile CONFIG_HEADERS
= $(SHELL
) config.status
83 if
test -x config.status
; then config.status
--recheck
; \
84 else $(SHELL
) configure
; fi
90 # distclean goal is for making a clean source tree, but if you have run
91 # configure from a different directory, then doesn't destroy all your
92 # hardly compiled and linked stuff. That's why there is always $(srcdir)/
93 # In that case most of those commands do nothing, except cleaning *~
94 # and cleaning source links.
96 rm -f
$(srcdir)/*~
$(srcdir)/config.cache
$(srcdir)/config.h
97 rm -f
$(srcdir)/mcfn_install
98 @for I in
$(alldirs
); do cd
$$I; $(MAKE
) $@ || exit
1; cd ..
; done
99 rm -f
$(srcdir)/Makefile
$(srcdir)/Make.common
100 rm -f lib
/mc.ext mcfn_install
101 rm -f vfs
/extfs
/{ftplist
,uzip
,uzoo
,lslR
,ulha
,ucpio
,deb
,urar
,uar
}
102 rm -f
$(srcdir)/config.log
$(srcdir)/config.status
105 sed
-e
"s/^%define ver .*/%define ver $(VERSION)/; s/^%define rel .*/%define rel 1/" mc.spec
> Specfile
106 mkdir ..
/mc-
$(VERSION
)
107 cp
$(DISTMAIN
) ..
/mc-
$(VERSION
);
108 for I in
$(alldirs
); do \
109 mkdir ..
/mc-
$(VERSION
)/$$I; \
111 $(MAKE
) distcopy VERSION
=$(VERSION
) PACKAGE
=mc || exit
1; \
113 mkdir ..
/mc-
$(VERSION
)/macros
114 cp
$(GNOME_M4_FILES
) ..
/mc-
$(VERSION
)/macros
115 cd po
; $(MAKE
) || exit
1; cd ..
;
116 cp po
/Makefile.in.in ..
/mc-
$(VERSION
)/po
;
117 cp po
/POTFILES.in ..
/mc-
$(VERSION
)/po
;
118 cp po
/*.po po
/*.gmo po
/mc.pot po
/stamp-cat-id po
/cat-id-tbl.c ..
/mc-
$(VERSION
)/po
;
119 (cd ..
; tar cvf
- mc-
$(VERSION
) | \
120 gzip
-f9
> mc-
$(VERSION
).
tar.gz
)
122 dist: configure config.h.in distcopy
125 rm -rf ..
/mc-
$(VERSION
)
126 tar xzvf ..
/mc-
$(VERSION
).
tar.gz
127 mkdir mc-
$(VERSION
)/=build
128 mkdir mc-
$(VERSION
)/=inst
129 dc_install_base
=`cd mc-$(VERSION)/=inst && pwd`; \
130 cd mc-
$(VERSION
)/=build \
131 && ..
/configure
--srcdir=..
--prefix=$$dc_install_base \
134 -rm -rf mc-
$(VERSION
)
136 distcheck
: dist check
137 @echo
***********************************
138 @echo mc-
$(VERSION
) is ready for release
139 @echo
***********************************