(md5_file): New function -- extracted from main.
[coreutils.git] / doc / Makefile.in
blob82a94169266051b461f4d51a8339d1f4b295a6dd
1 # Makefile for GNU file utilities documentation.
2 # Copyright (C) 1994, 1995 Free Software Foundation, Inc.
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
18 SHELL = /bin/sh
20 srcdir = @srcdir@
21 VPATH = @srcdir@
23 INSTALL = @INSTALL@
24 INSTALL_DATA = @INSTALL_DATA@
25 MAKEINFO = makeinfo
26 TEXI2DVI = texi2dvi
28 prefix = @prefix@
29 infodir = $(prefix)/info
31 .SUFFIXES:
33 DISTFILES = Makefile.in texinfo.tex fileutils.texi fileutils.info \
34 version.texi perm.texi getdate.texi
36 all: fileutils.info
38 info: fileutils.info
40 version.texi: ../src/version.c
41 sed -e '/version_string/!d' \
42 -e 's/[^0-9.]*\([0-9.a-z]*\).*/@set VERSION \1/' \
43 -e q $(srcdir)/../src/version.c \
44 > $@-t
45 echo '@set RELEASEDATE '`date '+%B %Y'` >> $@-t
46 mv $@-t $@
48 fileutils.info: fileutils.texi version.texi
49 $(MAKEINFO) -I$(srcdir) --no-split fileutils.texi --output=$@
51 dvi: fileutils.dvi
53 fileutils.dvi: fileutils.texi version.texi texinfo.tex
54 $(TEXI2DVI) $(srcdir)/fileutils.texi
56 installdirs:
57 $(srcdir)/../mkinstalldirs $(infodir)
59 install: install-exec install-data
60 install-exec:
61 install-data: all installdirs
62 cd $(srcdir) && for file in fileutils.info; do \
63 $(INSTALL_DATA) $$file $(infodir)/$$file; \
64 done
66 uninstall:
67 rm -f $(infodir)/fileutils.info
69 check:
71 texclean:
72 rm -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr \
73 *.fl *.cm *.op *.cps
75 mostlyclean: texclean
77 clean: mostlyclean
79 distclean: clean
80 rm -f Makefile
82 maintainer-clean: distclean
83 @echo "This command is intended for use by maintainers;"
84 @echo "it deletes files that may require special tools to rebuild."
85 rm -f fileutils.info version.texi
87 distdir = ../`cat ../distname`/$(subdir)
88 dist: $(DISTFILES)
89 for file in $(DISTFILES); do \
90 ln $$file $(distdir) \
91 || { echo copying $$file instead; cp -p $$file $(distdir);}; \
92 done
94 subdir = doc
95 Makefile: ../config.status Makefile.in
96 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
98 .PHONY: all check clean dist distclean dvi info install install-data \
99 install-exec installdirs maintainer-clean mostlyclean texclean uninstall
101 # Tell versions [3.59,3.63) of GNU make not to export all variables.
102 # Otherwise a system limit (for SysV at least) may be exceeded.
103 .NOEXPORT: