Cleanups after the update to Autoconf 2.64, Automake 1.11.
[deliverable/binutils-gdb.git] / bfd / doc / Makefile.am
index 2a7f792b0215b406aeb4a8c25816b103c136b8db..2a10fc0c75a2c194beaae65d36a6f3c73340f450 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 \
@@ -51,6 +52,7 @@ SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
 TEXIDIR = $(srcdir)/../../texinfo/fsf
 
 info_TEXINFOS = bfd.texinfo
+bfd_TEXINFOS = $(DOCFILES) bfdsumm.texi
 
 MKDOC = chew$(EXEEXT_FOR_BUILD)
 
@@ -58,18 +60,12 @@ INCLUDES = -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \
        -I$(srcdir)/../../intl -I../../intl
 
 $(MKDOC): $(srcdir)/chew.c
-       $(CC_FOR_BUILD) -o chew.$$$$ $(srcdir)/chew.c \
-         $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(H_CFLAGS) \
-         $(INCLUDES); \
+       $(CC_FOR_BUILD) -o chew.$$$$ $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
+         $(H_CFLAGS) $(INCLUDES) $(srcdir)/chew.c; \
        $(SHELL) $(srcdir)/../../move-if-change chew.$$$$ $(MKDOC)
 
-chew.o: chew.c
-       $(CC_FOR_BUILD) -c $(INCLUDES) $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c
-
 protos: libbfd.h libcoff.h bfd.h
 
-$(srcdir)/bfd.info bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo
-
 # We can't replace these rules with an implicit rule, because
 # makes without VPATH support couldn't find the .h files in `..'.
 
@@ -253,6 +249,7 @@ BFD_H_DEP = \
        $(srcdir)/../format.c           \
        $(srcdir)/../linker.c           \
        $(srcdir)/../simple.c           \
+       $(srcdir)/../compress.c         \
        $(srcdir)/header.sed            \
        $(srcdir)/proto.str             \
        $(srcdir)/../version.h          \
@@ -274,6 +271,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
@@ -287,3 +295,12 @@ MAINTAINERCLEANFILES = $(DOCFILES)
 # We want install to imply install-info as per GNU standards, despite the
 # cygnus option.
 install: install-info
+
+MAINTAINERCLEANFILES += bfd.info
+
+# Automake 1.9 will only build info files in the objdir if they are
+# mentioned in DISTCLEANFILES.  It doesn't have to be unconditional,
+# though, so we use a bogus condition.
+if GENINSRC_NEVER
+DISTCLEANFILES += bfd.info
+endif
This page took 0.024538 seconds and 4 git commands to generate.