aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'gas/doc/Makefile.am')
-rw-r--r--gas/doc/Makefile.am15
1 files changed, 9 insertions, 6 deletions
diff --git a/gas/doc/Makefile.am b/gas/doc/Makefile.am
index 5cd20f8..4d85018 100644
--- a/gas/doc/Makefile.am
+++ b/gas/doc/Makefile.am
@@ -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