1# Main makefile for GNU Shar utility package. 2# Copyright (C) 1995 Free Software Foundation, Inc. 3# 4# This program is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 2, or (at your option) 7# any later version. 8# 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this program; if not, write to the Free Software 16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 18PACKAGE = @PACKAGE@ 19VERSION = @VERSION@ 20 21SHELL = /bin/sh 22@SET_MAKE@ 23 24srcdir = @srcdir@ 25VPATH = @srcdir@ 26 27DISTFILES = COPYING AUTHORS BACKLOG ChangeLog ChangeLog.OLD INSTALL \ 28Makefile.in ABOUT-NLS NEWS README README.OLD THANKS TODO \ 29acconfig.h aclocal.m4 config.h.in configure configure.in install-sh \ 30mkinstalldirs stamp-h.in @DIST_ALPHA@ 31 32SUBDIRS = doc lib @POSUB@ @INTLSUB@ src checks contrib 33 34all: all-recursive 35 36all-recursive install install-exec install-data uninstall TAGS ID \ 37mostlyclean-recursive clean-recursive distclean-recursive \ 38maintainer-clean-recursive check: config.h Makefile 39 for subdir in $(SUBDIRS); do \ 40 target=`echo $@|sed 's/-recursive//'`; \ 41 echo making $$target in $$subdir; \ 42 (cd $$subdir && $(MAKE) $$target) \ 43 || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \ 44 done && test -z "$$fail" 45 46install-man: config.h Makefile 47 echo making $@ in doc 48 cd doc && $(MAKE) $@ 49 50distdir = $(PACKAGE)-$(VERSION) 51dist: Makefile 52 rm -fr $(distdir) 53 mkdir $(distdir) 54 for file in $(DISTFILES); do \ 55 ln $(srcdir)/$$file $(distdir) 2> /dev/null \ 56 || cp -p $(srcdir)/$$file $(distdir); \ 57 done 58 for subdir in $(SUBDIRS); do \ 59 mkdir $(distdir)/$$subdir || exit 1; \ 60 (cd $$subdir && $(MAKE) $@) || exit 1; \ 61 done 62 tar zchovf $(distdir).tar.gz $(distdir) 63 rm -fr $(distdir) 64 65tags: TAGS 66id: ID 67 68mostlyclean: mostlyclean-recursive mostlyclean-local 69 70clean: clean-recursive clean-local 71 72distclean: distclean-recursive distclean-local 73 rm -f config.status 74 75maintainer-clean: maintainer-clean-recursive maintainer-clean-local 76 @echo "This command is intended for maintainers to use;" 77 @echo "it deletes files that may require special tools to rebuild." 78 rm -f config.status 79 80mostlyclean-local: 81 82clean-local: mostlyclean-local 83 84distclean-local: clean-local 85 rm -f Makefile config.cache config.h config.log stamp-h tupdate.perl 86 87maintainer-clean-local: distclean-local 88 89check: 90 91dvi info: 92 cd doc && $(MAKE) $@ 93 94# For understanding the following see the autoconf manual. 95configure: configure.in aclocal.m4 96 cd $(srcdir) && autoconf 97 98# autoheader might not change config.h.in 99config.h.in: stamp-h.in 100stamp-h.in: configure.in acconfig.h 101 cd $(srcdir) && autoheader 102 rm -f $(srcdir)/stamp-h.in && echo timestamp > $(srcdir)/stamp-h.in 103 104#config.status might not change config.h 105# Don't rerun config.status if we just configured. 106config.h: stamp-h 107stamp-h: config.h.in config.status 108 test ! -f stamp-h || ./config.status 109 rm -f stamp-h && echo timestamp > stamp-h 110 111Makefile: Makefile.in config.status 112 ./config.status 113 114config.status: configure config.h.in 115 ./config.status --recheck 116 117# Tell versions [3.59,3.63) of GNU make not to export all variables. 118# Otherwise a system limit (for SysV at least) may be exceeded. 119.NOEXPORT: 120