Switch sources over to use the GPL version 3
[binutils-gdb.git] / bfd / doc / Makefile.am
index 242e4ec88044601c0343fba61abf5b8b5b716545..6ff434a6e7e67cd4bbb1260ef88240559bbb517b 100644 (file)
@@ -8,7 +8,8 @@ DOCFILES = aoutx.texi  archive.texi archures.texi \
        libbfd.texi bfdwin.texi bfdio.texi \
        opncls.texi  reloc.texi  section.texi  \
        syms.texi  targets.texi init.texi hash.texi linker.texi \
-       mmo.texi
+       mmo.texi \
+       bfdver.texi
 
 PROTOS = archive.p archures.p bfd.p \
         core.p format.p \
@@ -273,6 +274,17 @@ bfd.h: $(BFD_H_DEP)
        echo "#endif" >> $@
        echo "#endif" >> $@
 
+bfdver.texi: $(srcdir)/Makefile.in
+       @echo "creating $@"; \
+       echo "@set VERSION $(VERSION)" > bfdver.texi; \
+       if [ -n "$(PKGVERSION)" ]; then \
+         echo "@set VERSION_PACKAGE $(PKGVERSION)" >> bfdver.texi; \
+       fi; \
+       echo "@set UPDATED `date '+%B %Y'`" >> bfdver.texi; \
+       if [ -n "$(REPORT_BUGS_TEXI)" ]; then \
+         echo "@set BUGURL $(REPORT_BUGS_TEXI)" >> bfdver.texi; \
+       fi
+
 noinst_TEXINFOS = bfdint.texi
 
 MOSTLYCLEANFILES = $(MKDOC) *.o