Remove auot generated man pages
[deliverable/binutils-gdb.git] / gas / doc / Makefile.am
index 5cd20f8668f49d563ca54a3730e7b6b49c2d3ae5..4d85018d246a5db31c1ab7f5a45432599618eeb1 100644 (file)
@@ -65,14 +65,17 @@ MAINTAINERCLEANFILES = gasver.texi
 
 # Maintenance
 
+# We need it for the taz target in ../../Makefile.in.
+info: $(MANS)
+
 # Build the man page from the texinfo file
 # The sed command removes the no-adjust Nroff command so that
 # the man output looks standard.
-$(srcdir)/as.1: $(srcdir)/as.texinfo
-       touch $(srcdir)/as.1
+as.1: $(srcdir)/as.texinfo
+       touch $@
        -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
        -($(POD2MAN) as.pod | \
-               sed -e '/^.if n .na/d' > $(srcdir)/as.1.T$$$$ && \
-               mv -f $(srcdir)/as.1.T$$$$ $(srcdir)/as.1) || \
-               (rm -f $(srcdir)/as.1.T$$$$ && exit 1)
-
+               sed -e '/^.if n .na/d' > $@.T$$$$ && \
+               mv -f $@.T$$$$ $@) || \
+               (rm -f $@.T$$$$ && exit 1)
+       rm -f as.pod
This page took 0.025131 seconds and 4 git commands to generate.