Bug fix for maintainer-clean
[automake.git] / texi-version.am
blob1faca2c319db6eb5a2de87752768b92948ceb164
1 version.texi: stamp-vti
3 # Depend on configure.in so that version number updates cause a
4 # rebuild.
5 stamp-vti: @TEXI@ $(top_srcdir)/configure.in
6         echo "@set UPDATED `cd $(srcdir) && $(SHELL) mdate-sh @TEXI@`" \
7           > version.tmp
8         echo "@set EDITION $(VERSION)" >> version.tmp
9         echo "@set VERSION $(VERSION)" >> version.tmp
10         if cmp -s version.tmp $(srcdir)/version.texi; then \
11           rm version.tmp;                       \
12         else                                    \
13           mv version.tmp $(srcdir)/version.texi; \
14         fi
15         touch $(srcdir)/stamp-vti
17 mostlyclean-vti:
18         rm -f *.tmp
20 clean-vti:
21         rm -f $(VTI)
23 distclean-vti:
25 maintainer-clean-vti:
26         rm -f stamp-vti version.texi