2014-04-09 Alan Modra <amodra@gmail.com>
+ * Makefile.am ($(MKDOC)): New rule, depend on chew.stamp. Move
+ old rule to..
+ (chew.stamp): ..here.
+ (DISTCLEANFILES): Move *.stamp..
+ (MOSTLYCLEANFILES): ..to here.
+ * Makefile.in: Regenerate.
+
+2014-04-09 Alan Modra <amodra@gmail.com>
+
* Makefile.am (MKDOC): Use $@ in command.
(aoutx.texi): New rule, depend on aoutx.stamp. Move old rule..
(aoutx.stamp): .. to here. Don't depend on chew.c, depend on MKDOC
AM_CPPFLAGS = -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \
-I$(srcdir)/../../intl -I../../intl
-$(MKDOC): $(srcdir)/chew.c
+$(MKDOC): chew.stamp ; @true
+chew.stamp: $(srcdir)/chew.c
$(CC_FOR_BUILD) -o chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
$(LDFLAGS_FOR_BUILD) $(H_CFLAGS) $(AM_CPPFLAGS) $(srcdir)/chew.c; \
- $(SHELL) $(srcdir)/../../move-if-change chw$$$$$(EXEEXT_FOR_BUILD) $@
+ $(SHELL) $(srcdir)/../../move-if-change \
+ chw$$$$$(EXEEXT_FOR_BUILD) $(MKDOC); \
+ touch $@
protos: libbfd.h libcoff.h bfd.h
noinst_TEXINFOS = bfdint.texi
-MOSTLYCLEANFILES = $(MKDOC) *.o
+MOSTLYCLEANFILES = $(MKDOC) *.o *.stamp
CLEANFILES = *.p *.ip
-DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log *.stamp
+DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log
MAINTAINERCLEANFILES = $(DOCFILES)
$(MKDOC)
noinst_TEXINFOS = bfdint.texi
-MOSTLYCLEANFILES = $(MKDOC) *.o
+MOSTLYCLEANFILES = $(MKDOC) *.o *.stamp
CLEANFILES = *.p *.ip
DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log \
- *.stamp $(am__append_1)
+ $(am__append_1)
MAINTAINERCLEANFILES = $(DOCFILES) bfd.info
all: all-am
uninstall-info-am uninstall-pdf-am uninstall-ps-am
-$(MKDOC): $(srcdir)/chew.c
+$(MKDOC): chew.stamp ; @true
+chew.stamp: $(srcdir)/chew.c
$(CC_FOR_BUILD) -o chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
$(LDFLAGS_FOR_BUILD) $(H_CFLAGS) $(AM_CPPFLAGS) $(srcdir)/chew.c; \
- $(SHELL) $(srcdir)/../../move-if-change chw$$$$$(EXEEXT_FOR_BUILD) $@
+ $(SHELL) $(srcdir)/../../move-if-change \
+ chw$$$$$(EXEEXT_FOR_BUILD) $(MKDOC); \
+ touch $@
protos: libbfd.h libcoff.h bfd.h