summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-06-19 13:51:54 +0200
committerBruno Haible <bruno@clisp.org>2008-06-19 13:51:54 +0200
commit25fedb1f9fe7f9f218add67a17feb0a50dd96de1 (patch)
treee9bfad56ab8d75b3a304e91e4dda2cf8839c306b /doc/Makefile
parentde9ac8823d4fec14401b376606425d41397c3e92 (diff)
downloadgnulib-25fedb1f9fe7f9f218add67a17feb0a50dd96de1.tar.gz
Fix CVS-isms.
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 65e5150b52..607dad9f94 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -23,12 +23,19 @@ html: $(doc).html
dvi: $(doc).dvi
pdf: $(doc).pdf
+GNULIB_TEXI_FILES = $(filter-out maintain.texi make-stds.texi standards.texi,$(wildcard *.texi)) $(wildcard posix-headers/*.texi) $(wildcard posix-functions/*.texi) $(wildcard glibc-headers/*.texi) $(wildcard glibc-functions/*.texi)
+
+# Date of last update. Requires GNU date.
+updated-stamp: $(GNULIB_TEXI_FILES)
+ date -u -r `ls -t $^ | sed 1q` +"@set UPDATED %F %T" > $@
+
# Dependencies. Search for @include to find them all.
-gnulib.info gnulib.html gnulib.dvi gnulib.pdf: $(filter-out maintain.texi make-stds.texi standards.texi,$(wildcard *.texi)) $(wildcard posix-headers/*.texi) $(wildcard posix-functions/*.texi) $(wildcard glibc-headers/*.texi) $(wildcard glibc-functions/*.texi)
+gnulib.info gnulib.html gnulib.dvi gnulib.pdf: $(GNULIB_TEXI_FILES) updated-stamp
standards.info standards.html standards.dvi: standards.texi make-stds.texi fdl.texi
mostlyclean:
rm -f *.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.vr *.vrs
+ rm -f updated-stamp
clean: mostlyclean
rm -f *.info *.html *.dvi *.ps *.pdf