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)
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.
24 INSTALL_DATA
= @INSTALL_DATA@
29 infodir = $(prefix)/info
33 DISTFILES
= Makefile.in texinfo.
tex fileutils.texi fileutils.
info \
34 version.texi perm.texi getdate.texi
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 \
45 echo
'@set RELEASEDATE '`date '+%B %Y'` >> $@
-t
48 fileutils.
info: fileutils.texi version.texi
49 $(MAKEINFO
) -I
$(srcdir) --no-split fileutils.texi
--output
=$@
53 fileutils.
dvi: fileutils.texi version.texi texinfo.
tex
54 $(TEXI2DVI
) $(srcdir)/fileutils.texi
57 $(srcdir)/..
/mkinstalldirs
$(infodir)
59 install: install-exec install-data
61 install-data
: all installdirs
62 cd
$(srcdir) && for file in fileutils.
info; do \
63 $(INSTALL_DATA
) $$file $(infodir)/$$file; \
67 rm -f
$(infodir)/fileutils.
info
72 rm -f
*.aux
*.cp
*.
dvi *.fn
*.ky
*.log
*.pg
*.toc
*.tp
*.vr \
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
)
89 for file in
$(DISTFILES
); do \
90 ln
$$file $(distdir
) \
91 ||
{ echo copying
$$file instead
; cp
-p
$$file $(distdir
);}; \
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.