Makefile.in 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. srcdir = @srcdir@
  2. VPATH = @srcdir@
  3. rootdir = $(srcdir)
  4. @MCFGR@@MCF@
  5. foreigndirs=pc
  6. codedirs=vfs lib doc slang edit gtkedit src gnome icons idl
  7. unixdirs=intl $(codedirs) @POSUB@
  8. alldirs=$(unixdirs) $(foreigndirs)
  9. subdirs=$(alldirs)
  10. INSTALL = @INSTALL@
  11. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  12. INSTALL_DATA = @INSTALL_DATA@
  13. DISTMAIN = configure configure.in NEWS README INSTALL INSTALL.FAST \
  14. Makefile.in FAQ COPYING create_vcs install-sh \
  15. config.h.in mc-aclocal.m4 aclocal.m4 acconfig.h \
  16. VERSION mcfn_install.in Make.common.in README.PC \
  17. mc.spec Specfile README.QNX VERSION.in \
  18. mkinstalldirs autogen.sh ABOUT-NLS
  19. all:
  20. @for dir in @INTLSUB@ ${codedirs} @POSUB@; do \
  21. cd $$dir; \
  22. ${MAKE} all || exit 1; \
  23. cd .. ;\
  24. done
  25. static:
  26. $(MAKE) _LDFLAGS="-static $(_LDFLAGS)"
  27. configure: configure.in aclocal.m4
  28. chmod 755 configure
  29. GNOME_M4_FILES = macros/gnome.m4 macros/gnome-vfs.m4 macros/gnome-undelfs.m4 \
  30. macros/linger.m4
  31. aclocal.m4: mc-aclocal.m4 $(GNOME_M4_FILES) gettext.m4
  32. cd $(srcdir); cat $(GNOME_M4_FILES) mc-aclocal.m4 gettext.m4 > aclocal.m4
  33. config.h.in: configure.in acconfig.h
  34. cd $(srcdir); autoheader
  35. install: installdirs @vcs@
  36. @for I in $(unixdirs); do cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1; cd ..; done
  37. $(INSTALL_DATA) $(srcdir)/FAQ $(DESTDIR)$(libdir)/FAQ
  38. $(INSTALL_PROGRAM) mcfn_install $(DESTDIR)$(suppbindir)/mcfn_install
  39. chmod +x $(DESTDIR)$(suppbindir)/mcfn_install
  40. @echo "Please verify that the configuration values are correctly"
  41. @echo "set in the mc.ext file in $(libdir)"
  42. install.create_vcs:
  43. $(INSTALL_PROGRAM) $(srcdir)/create_vcs $(DESTDIR)$(suppbindir)/create_vcs
  44. if test x$(DESTDIR) = x; then $(SHELL) $(srcdir)/create_vcs; fi
  45. installdirs:
  46. $(mcsrcdir)/xmkdir $(DESTDIR)$(bindir) $(DESTDIR)$(libdir)
  47. $(mcsrcdir)/xmkdir $(DESTDIR)$(mandir) $(DESTDIR)$(man8dir)
  48. $(mcsrcdir)/xmkdir $(DESTDIR)$(icondir) $(DESTDIR)$(suppbindir)
  49. $(mcsrcdir)/xmkdir $(DESTDIR)$(tidir) $(DESTDIR)$(extfsdir)
  50. mcfninstall:
  51. -/bin/sh ./mcfn_install
  52. uninstall:
  53. @for I in $(unixdirs); do cd $$I; $(MAKE) $@ || exit 1; cd ..; done
  54. -$(RMF) $(DESTDIR)$(libdir)/FAQ
  55. -$(RMF) $(DESTDIR)$(suppbindir)/mcfn_install
  56. -rmdir $(DESTDIR)$(suppbindir)
  57. -rmdir $(DESTDIR)$(libdir)
  58. @echo Midnight Commander uninstalled
  59. cross TAGS clean depend dep:
  60. @for I in $(unixdirs); do cd $$I; $(MAKE) $@ || exit 1; cd ..; done
  61. Makefile:
  62. $(SHELL) config.status
  63. config.status:
  64. if test -x config.status; then config.status --recheck; \
  65. else $(SHELL) configure; fi
  66. realclean: clean
  67. rm -f *~
  68. rm -f config.cache
  69. # distclean goal is for making a clean source tree, but if you have run
  70. # configure from a different directory, then doesn't destroy all your
  71. # hardly compiled and linked stuff. That's why there is always $(srcdir)/
  72. # In that case most of those commands do nothing, except cleaning *~
  73. # and cleaning source links.
  74. distclean:
  75. rm -f $(srcdir)/*~ $(srcdir)/config.cache $(srcdir)/config.h
  76. rm -f $(srcdir)/mcfn_install
  77. @for I in $(alldirs); do cd $$I; $(MAKE) $@ || exit 1; cd ..; done
  78. rm -f $(srcdir)/Makefile $(srcdir)/Make.common
  79. rm -f lib/mc.ext mcfn_install
  80. rm -f vfs/extfs/{ftplist,uzip,uzoo,lslR,ulha,ucpio,deb,urar,uar}
  81. rm -f $(srcdir)/config.log $(srcdir)/config.status
  82. distcopy:
  83. sed -e "s/^%define ver .*/%define ver $(VERSION)/; s/^%define rel .*/%define rel 1/" mc.spec > Specfile
  84. mkdir ../mc-$(VERSION)
  85. cp $(DISTMAIN) ../mc-$(VERSION);
  86. for I in $(alldirs); do \
  87. mkdir ../mc-$(VERSION)/$$I; \
  88. cd $$I ; \
  89. $(MAKE) distcopy VERSION=$(VERSION) PACKAGE=mc || exit 1; \
  90. cd ..; done
  91. cd po; $(MAKE) || exit 1; cd ..;
  92. cp po/Makefile.in.in ../mc-$(VERSION)/po;
  93. cp po/POTFILES.in ../mc-$(VERSION)/po;
  94. cp po/*.po po/*.gmo po/mc.pot po/stamp-cat-id po/cat-id-tbl.c ../mc-$(VERSION)/po;
  95. (cd ..; tar cvf - mc-$(VERSION) | \
  96. gzip -f9 > mc-$(VERSION).tar.gz)
  97. dist: configure config.h.in distcopy