2000-06-19 Paolo Bonzini <bonzini@gnu.org>
[platform/upstream/automake.git] / lib / am / texi-vers.am
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1998, 1999,
3 ##               2000 Free Software Foundation, Inc.
4
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
8 ## any later version.
9
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
14
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 ## 02111-1307, USA.
19 $(srcdir)/@VTEXI@: @MAINTAINER_MODE_TRUE@stamp-@VTI@
20         @:
21
22 ## Depend on configure.in so that version number updates cause a
23 ## rebuild.
24 $(srcdir)/stamp-@VTI@: @TEXI@ $(top_srcdir)/configure.in
25         @(set `$(SHELL) @MDDIR@mdate-sh $(srcdir)/@TEXI@`; \
26         echo "@set UPDATED $$1 $$2 $$3"; \
27         echo "@set UPDATED-MONTH $$2 $$3"; \
28         echo "@set EDITION $(VERSION)"; \
29         echo "@set VERSION $(VERSION)") > @VTI@.tmp
30 ## Use cp and rm here because some older "mv"s can't move across
31 ## filesystems.  Furthermore, GNU "mv" in the AmigaDOS environment
32 ## can't handle this.
33         @cmp -s @VTI@.tmp $(srcdir)/@VTEXI@ \
34           || (echo "Updating $(srcdir)/@VTEXI@"; \
35               cp @VTI@.tmp $(srcdir)/@VTEXI@)
36         -@rm -f @VTI@.tmp
37         @cp $(srcdir)/@VTEXI@ $@
38
39 mostlyclean-@VTI@:
40         -rm -f @VTI@.tmp
41
42 clean-@VTI@:
43
44 distclean-@VTI@:
45
46 maintainer-clean-@VTI@:
47         -@MAINTAINER_MODE_TRUE@rm -f $(srcdir)/stamp-@VTI@ $(srcdir)/@VTEXI@
48