Skip to content

Commit 535e0f6

Browse files
committed
Makefile.am, docs/Makefile.am: use abs_top_builddir for wrapper rules
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 7de34ed commit 535e0f6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile.am

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ spellcheck spellcheck-interactive:
177177
doc spellcheck-sortdict \
178178
all-docs check-docs \
179179
man all-man man-man check-man man-html all-html:
180-
+cd $(builddir)/docs && $(MAKE) $(AM_MAKEFLAGS) -s $(abs_top_builddir)/docs/.prep-src-docs
181-
+cd $(builddir)/docs/man && $(MAKE) $(AM_MAKEFLAGS) -s $(abs_top_builddir)/docs/man/.prep-src-docs
182-
+cd $(builddir)/docs && $(MAKE) $(AM_MAKEFLAGS) $@
180+
+cd $(abs_top_builddir)/docs && $(MAKE) $(AM_MAKEFLAGS) -s $(abs_top_builddir)/docs/.prep-src-docs
181+
+cd $(abs_top_builddir)/docs/man && $(MAKE) $(AM_MAKEFLAGS) -s $(abs_top_builddir)/docs/man/.prep-src-docs
182+
+cd $(abs_top_builddir)/docs && $(MAKE) $(AM_MAKEFLAGS) $@
183183

184184
INSTALL.nut UPGRADING NEWS README:
185-
+cd $(builddir)/docs && $(MAKE) $(AM_MAKEFLAGS) ../$(@F).adoc-parsed && cp -f ../$(@F).adoc-parsed ../$(@F)
185+
+cd $(abs_top_builddir)/docs && $(MAKE) $(AM_MAKEFLAGS) ../$(@F).adoc-parsed && cp -f ../$(@F).adoc-parsed ../$(@F)
186186

187187
# Workarounds for https://github.com/github/markup/issues/1095
188188
# require direct definition of our attributes in each source

docs/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ check-html-chunked: $(ASCIIDOC_HTML_CHUNKED)
186186
# chosen during configure script execution. The "all-man" and "all-html"
187187
# rules build everything documented.
188188
check-man all-man man-man all-html html-man:
189-
+cd $(top_builddir)/docs/man/ && $(MAKE) $(AM_MAKEFLAGS) -f Makefile $@
189+
+cd $(abs_top_builddir)/docs/man/ && $(MAKE) $(AM_MAKEFLAGS) -f Makefile $@
190190

191191
man:
192-
+cd $(top_builddir)/docs/man/ && $(MAKE) $(AM_MAKEFLAGS) -f Makefile all
192+
+cd $(abs_top_builddir)/docs/man/ && $(MAKE) $(AM_MAKEFLAGS) -f Makefile all
193193

194194
CLEANFILES = *.xml *.html *.pdf *-spellchecked docbook-xsl.css docinfo.xml.in.tmp
195195
CLEANFILES += $(top_builddir)/INSTALL.nut $(top_builddir)/UPGRADING $(top_builddir)/NEWS $(top_builddir)/ChangeLog.adoc $(top_builddir)/README

0 commit comments

Comments
 (0)